6 workdir
=/home
/opentx
/release22
7 output
=/var
/www
/html
/2.2
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 # Get images for Taranis x9
31 mkdir
-p ${workdir}/sdcard
/taranis-x
9/IMAGES
32 cp /home
/opentx
/x9-bitmaps
/* ${workdir}/sdcard
/taranis-x
9/IMAGES
/
34 # Request sound pack generation
35 python3
-B ${workdir}/code
/tools
/release22
/tts.py en csv files
36 python3
-B ${workdir}/code
/tools
/release22
/tts.py fr csv files
37 python3
-B ${workdir}/code
/tools
/release22
/tts.py es csv files
38 python3
-B ${workdir}/code
/tools
/release22
/tts.py it csv files
39 python3
-B ${workdir}/code
/tools
/release22
/tts.py de csv files
40 python3
-B ${workdir}/code
/tools
/nightly22
/tts.py cz csv files
41 python3
-B ${workdir}/code
/tools
/nightly22
/tts.py pt csv files
43 # Create sdcards.zips for supported platforms
44 mv /tmp
/SOUNDS
${workdir}/sdcard
/horus
/
45 mkdir
${workdir}/sdcard
/taranis-x
9/SOUNDS
46 mkdir
${workdir}/sdcard
/taranis-x
7/SOUNDS
47 cp -r ${workdir}/sdcard
/horus
/SOUNDS
${workdir}/sdcard
/taranis-x
9/
48 cp -r ${workdir}/sdcard
/horus
/SOUNDS
${workdir}/sdcard
/taranis-x
7/
49 cd ${workdir}/sdcard/horus && zip -r ${output}/sdcard/x12/sdcard-horus-${sdcard_version}.
zip *
50 cd ${workdir}/sdcard/taranis-x9 && zip -r ${output}/sdcard/x9/sdcard-taranis-x9-${sdcard_version}.
zip *
51 cd ${workdir}/sdcard/taranis-x7 && zip -r ${output}/sdcard/x7/sdcard-taranis-x7-${sdcard_version}.
zip *
52 rm -Rf ${workdir}/sdcard