1
0
forked from bip/bip
bip/scripts/bip-take-snapshot
2007-11-25 15:50:19 +01:00

14 lines
209 B
Bash
Executable File

#!/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