File get_sources.sh of Package childsplay-languagepacks
#!/bin/bash VERSION="0.4.2" for i in ca de es fr it nl pt ru sv; do if [ -f alphabet_sounds_$i-$VERSION.tgz -o -f alphabet_sounds_$i-$VERSION.tar.bz2 ]; then echo -n "alphabet_sounds_$i-$VERSION.t* exists - overwrite [y/N]? " read ans if [ x"$ans" = x"y" -o x"$ans" = x"Y" ]; then test -f alphabet_sounds_$i-$VERSION.tgz && rm alphabet_sounds_$i-$VERSION.tgz test -f alphabet_sounds_$i-$VERSION.tar.bz2 && rm alphabet_sounds_$i-$VERSION.tar.bz2 wget http://mesh.dl.sourceforge.net/sourceforge/childsplay/alphabet_sounds_$i-$VERSION.tgz else echo "skipping alphabet_sounds_$i-$VERSION.tgz" fi else wget http://mesh.dl.sourceforge.net/sourceforge/childsplay/alphabet_sounds_$i-$VERSION.tgz fi gunzip alphabet_sounds_$i-$VERSION.tgz bzip2 alphabet_sounds_$i-$VERSION.tar done