1
0
forked from bip/bip
bip/scripts/bip-take-snapshot

15 lines
238 B
Plaintext
Raw Normal View History

2007-11-25 15:50:19 +01:00
#!/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
2007-12-08 16:22:56 +01:00
echo "See ../$prefix.tar.gz"
2007-11-25 15:50:19 +01:00