From a66b978eb97229035292a1fdd3851e48d83f5f97 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Tue, 29 Oct 2013 21:25:00 +0100 Subject: Le script de build arrive a pondre un .zip et un .tar avec le commit id --- dist/build_all.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/dist/build_all.sh b/dist/build_all.sh index 5cdde31..8dbb287 100755 --- a/dist/build_all.sh +++ b/dist/build_all.sh @@ -13,12 +13,14 @@ function export_files() { } echo "Cleaning up work/ directory..." -[ -d work.old/ ] && rm -r work.old/ +[ -d work.old/ ] && chmod 777 -R work.old/ && rm -rf work.old/ [ -d work ] && mv work/ work.old/ mkdir work/ srcbase=".." dstbase="work/tarball" +commit=$(cd $srcbase ; git describe --always HEAD) +archfile=work/editablesite-$commit export_files $srcbase $dstbase < $archfile.tar.gz +( cd "$dstbase" ; zip -9 -q -r - .) > $archfile.zip + -- cgit v1.2.3