251ce2f
#!/bin/bash
251ce2f
251ce2f
DATE=`date +%Y%m%d`
4af9300
VERSION=1.1.45
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
6fd2502
test -d .git || {
6fd2502
echo bye ; exit 1
6fd2502
}
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