From 32cdb53d09f2c8028ffe4d438ae45c5c4f3579ce Mon Sep 17 00:00:00 2001 From: Arnaud Cornet Date: Sun, 25 Nov 2007 15:50:19 +0100 Subject: [PATCH] Add bip-take-snapshot --- scripts/bip-take-snapshot | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/bip-take-snapshot diff --git a/scripts/bip-take-snapshot b/scripts/bip-take-snapshot new file mode 100755 index 0000000..f07bfa5 --- /dev/null +++ b/scripts/bip-take-snapshot @@ -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 +