make_source.sh 339 Bytes
Newer Older
prx's avatar
prx committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/sh
#Auteur :      thuban <thuban@yeuxdelibad.net>

REP=~/geek/gitreps/3hg/dontpanic

if [ -d /tmp/dontpanic ]; then
    rm -rf /tmp/dontpanic
fi

mkdir -p /tmp/dontpanic
cd $REP
cp -r * /tmp/dontpanic
rm -r /tmp/dontpanic/site
cd /tmp
tar cvzf "dontpanic-latest.tgz"  "dontpanic"
mv dontpanic-latest.tgz $REP/site/downloads/

exit