Engine for LaTeX songbooks http://www.patacrep.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
705 B

#!/bin/sh
#Author: Romain Goffe
#Date: 13/10/2011
#Description: Build a tarball from the songbook git repo
#Copy songbook directory
cd $HOME
cp -RH songbook songbook-$(date +%d)-$(date +%m)-$(date +%Y);
#Remove unecessary directories
cd songbook-$(date +%d)-$(date +%m)-$(date +%Y);
rm -rf perso/ ;
rm -rf data/ ;
rm -rf .git/ ;
rm -f .gitignore ;
rm -f utils/send.sh ;
rm -f books/tmp.sb books/default.sb
rm -f default*
#Clean tmp files
find . -name "*~" -type f -exec rm -f {} \; && find . -name "#*#" -type f -exec rm -f {} \;
make cleanall
#Tarball
cd $HOME
tar czvf songbook.tar.gz songbook-$(date +%d)-$(date +%m)-$(date +%Y)
#Remove copy
rm -rf songbook-$(date +%d)-$(date +%m)-$(date +%Y)/