251ce2f
#!/bin/bash
251ce2f
251ce2f
DATE=`date +%Y%m%d`
bbbf3ad
VERSION=1.1.10.a3
251ce2f
PKGNAME=389-admin
275c8d9
TAG=${TAG:-$PKGNAME-$VERSION}
251ce2f
SRCNAME=${PKGNAME}-${VERSION}
251ce2f
echo you must be in the admin server git repo to use this
275c8d9
test -d .git || {echo bye ; exit 1 }
251ce2f
if [ -z "$1" ] ; then
251ce2f
	dir=.
251ce2f
else
251ce2f
	dir="$1"
251ce2f
fi
275c8d9
git archive --prefix=$SRCNAME/ $TAG | bzip2 > $dir/$SRCNAME.tar.bz2