mkrelease: Update to work with Git instead of SVN.
authorAndrew Kroeger <andrew@sprocks.gotdns.com>
Sat, 29 Mar 2008 02:55:09 +0000 (21:55 -0500)
committerAndrew Kroeger <andrew@sprocks.gotdns.com>
Sat, 29 Mar 2008 02:55:09 +0000 (21:55 -0500)
source/script/mkrelease.sh

index a6e7c84..d74d5d1 100755 (executable)
@@ -1,8 +1,7 @@
 #!/bin/sh
 
-TMPDIR=`mktemp samba-XXXXX`
-rm $TMPDIR || exit 1
-svn export . $TMPDIR || exit 1
+TMPDIR=`mktemp -d samba-XXXXX`
+(git archive --format=tar HEAD | (cd $TMPDIR/ ; tar xf -))
 
 ( cd $TMPDIR/source
  ./autogen.sh || exit 1