Add bip-take-snapshot
This commit is contained in:
parent
5faa6581b7
commit
32cdb53d09
13
scripts/bip-take-snapshot
Executable file
13
scripts/bip-take-snapshot
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user