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