1
0
forked from bip/bip
bip/scripts/bip-take-snapshot
2007-12-08 16:22:56 +01:00

15 lines
238 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
echo "See ../$prefix.tar.gz"