Warning, file /education/gcompris-data/voices/update_voices.sh was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/bin/bash
0002 #
0003 # Run this script on gcompris.net to update the rcc files
0004 # being served by it.
0005 #
0006 # cd /opt/gcompris
0007 # ./updateVoices.sh
0008 #
0009 
0010 # the path depends on the distribution
0011 # export RCC=/usr/lib64/qt5/bin/rcc
0012 export RCC=/usr/bin/rcc
0013 
0014 echo "Generate ogg rcc"
0015 rm -rf ogg
0016 rsync -a --exclude .git --exclude aac --exclude mp3 . ogg
0017 cd ogg
0018 ./generate_voices_rcc.sh ogg
0019 cd ../
0020 
0021 function generateEncodedVoices {
0022     codec=$1
0023     echo "Create the $codec directory"
0024     rm -rf $codec
0025     rsync -a --exclude .git --exclude voices-ogg ogg/ $codec
0026     cd $codec
0027 
0028     echo "Encoding $codec files"
0029     ./encodeTo.sh $codec
0030 
0031     echo "Generate $codec rcc"
0032     ./generate_voices_rcc.sh $codec
0033 
0034     echo "Consolidate the top level Content file"
0035     cat .rcc/Contents >> ../ogg/.rcc/Contents
0036     rm .rcc/Contents
0037 
0038 #    echo "Update $codec on gcompris.net"
0039 #    rsync -avx .rcc/ /var/www/data2/
0040     cd ..
0041 }
0042 
0043 generateEncodedVoices aac
0044 generateEncodedVoices mp3
0045 
0046 #echo "Update ogg on gcompris.net"
0047 #cd ogg
0048 #rsync -avx .rcc/ /var/www/data2/