improved release script

This commit is contained in:
Martin Konecny 2012-05-07 22:39:05 -04:00
parent 8ad5b14de7
commit 818e0392e7

View file

@ -37,16 +37,22 @@ echo "Checking out tag airtime-${suffix}"
git checkout airtime-${suffix} git checkout airtime-${suffix}
git submodule init git submodule init
git submodule update git submodule update
cd python_apps/pypo/liquidsoap_bin/
git checkout master
git pull origin master
cd $target
rm -rf .git .gitignore .gitmodules .zfproject.xml dev_tools/ audio_samples/ python_apps/pypo/liquidsoap_bin/.git rm -rf .git .gitignore .gitmodules .zfproject.xml dev_tools/ audio_samples/ python_apps/pypo/liquidsoap_bin/.git
echo "Minimizing Airtime Javascript files..." #echo "Minimizing Airtime Javascript files..."
cd $dir #cd $dir
find $target/airtime_mvc/public/js/airtime/ -iname "*.js" -exec bash -c 'echo {}; jsmin/jsmin < {} > {}.min' \; #find $target/airtime_mvc/public/js/airtime/ -iname "*.js" -exec bash -c 'echo {}; jsmin/jsmin < {} > {}.min' \;
find $target/airtime_mvc/public/js/airtime/ -iname "*.js" -exec mv {}.min {} \; #find $target/airtime_mvc/public/js/airtime/ -iname "*.js" -exec mv {}.min {} \;
echo "Done" #echo "Done"
#zip -r airtime-${suffix}.zip airtime-${version} #zip -r airtime-${suffix}.zip airtime-${version}
tar -czf $target_file $target cd /tmp/
tar -czf $target_file airtime-${version}
echo "Output file available at $target_file" echo "Output file available at $target_file"