6 workdir
=/home
/opentx
/nightly22
7 output
=/var
/www
/html
/2.2/nightlies
9 # Handle opentx.sdcard.version
10 sdcard_version
="2.2V"$
(grep 'set(SDCARD_REVISION' ${workdir}/code
/CMakeLists.txt |
grep -o '".*"' |
sed 's/"//g')
11 echo ${sdcard_version} > ${workdir}/code
/radio
/sdcard
/horus
/opentx.sdcard.version
12 echo ${sdcard_version} > ${workdir}/code
/radio
/sdcard
/taranis-x
9/opentx.sdcard.version
13 echo ${sdcard_version} > ${workdir}/code
/radio
/sdcard
/taranis-x
7/opentx.sdcard.version
15 if cmp --silent ${workdir}/code
/radio
/sdcard
/horus
/opentx.sdcard.version
${workdir}/opentx.sdcard.version
19 cp -r ${workdir}/code
/radio
/sdcard
/horus
/opentx.sdcard.version
${workdir}
22 # Copy git sdcard data
23 rm -Rf ${workdir}/sdcard
24 cp -r ${workdir}/code
/radio
/sdcard .
26 # Get images for Horus
27 mkdir
-p ${workdir}/sdcard
/horus
/IMAGES
28 cp /home
/opentx
/horus-bitmaps
/* ${workdir}/sdcard
/horus
/IMAGES
/
30 # Request sound pack generation
31 ${workdir}/code
/tools
/nightly22
/tts.py en csv files
32 ${workdir}/code
/tools
/nightly22
/tts.py fr csv files
33 ${workdir}/code
/tools
/nightly22
/tts.py es csv files
34 ${workdir}/code
/tools
/nightly22
/tts.py it csv files
35 ${workdir}/code
/tools
/nightly22
/tts.py de csv files
36 ${workdir}/code
/tools
/nightly22
/tts.py cz csv files
37 ${workdir}/code
/tools
/nightly22
/tts.py pt csv files
38 ${workdir}/code
/tools
/nightly22
/tts.py ru csv psv files
40 # Create sdcards.zips for supported platforms
41 mv /tmp
/SOUNDS
${workdir}/sdcard
/horus
/
42 mkdir
${workdir}/sdcard
/taranis-x
9/SOUNDS
43 mkdir
${workdir}/sdcard
/taranis-x
7/SOUNDS
44 cp -r ${workdir}/sdcard
/horus
/SOUNDS
${workdir}/sdcard
/taranis-x
9/
45 cp -r ${workdir}/sdcard
/horus
/SOUNDS
${workdir}/sdcard
/taranis-x
7/
46 cd ${workdir}/sdcard/horus && zip -r ${output}/sdcard/sdcard-horus-${sdcard_version}.
zip *
47 cd ${workdir}/sdcard/taranis-x9 && zip -r ${output}/sdcard/sdcard-taranis-x9-${sdcard_version}.
zip *
48 cd ${workdir}/sdcard/taranis-x7 && zip -r ${output}/sdcard/sdcard-taranis-x7-${sdcard_version}.
zip *
49 rm -Rf ${workdir}/sdcard