File get_sources.sh of Package childsplay-languagepacks

#!/bin/bash
VERSION="0.9.1"
for i in bg ca de es en_GB el fr it lt nb nl pt pt_BR ru ro sl 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/schoolsplay/alphabet_sounds_$i-$VERSION.tgz
		else
			echo "skipping alphabet_sounds_$i-$VERSION.tgz"
		fi
	else
		wget http://mesh.dl.sourceforge.net/sourceforge/schoolsplay/alphabet_sounds_$i-$VERSION.tgz
	fi
	gunzip alphabet_sounds_$i-$VERSION.tgz
	bzip2 alphabet_sounds_$i-$VERSION.tar
done
openSUSE Build Service is sponsored by