Add bip-take-snapshot

This commit is contained in:
Arnaud Cornet 2007-11-25 15:50:19 +01:00
parent 5faa6581b7
commit 32cdb53d09
1 changed files with 13 additions and 0 deletions

13
scripts/bip-take-snapshot Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
prefix=bip-$(date +%y%m%d)
if [ ! -d src ] ; then
echo "Please run me in bip sources root." >&2
exit 1
fi
git-archive --format=tar --prefix=$prefix/ HEAD | gzip -c > ../$prefix.tar.gz