mirror of https://github.com/patacrep/patacrep.git
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.
30 lines
674 B
30 lines
674 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 "*~" -or -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)/
|
|
|