256eebf
#!/bin/bash
256eebf
256eebf
DATE=`date +%Y%m%d`
256eebf
# use a real tag name here
ae7ea0c
VERSION=1.2.5.rc4
256eebf
PKGNAME=389-ds-base
5d06950
TAG=${TAG:-$PKGNAME-$VERSION}
256eebf
#SRCNAME=$PKGNAME-$VERSION-$DATE
256eebf
SRCNAME=$PKGNAME-$VERSION
256eebf
256eebf
echo you must be in the ds git repo to use this
45fee1a
test -d .git || {
45fee1a
    echo bye
45fee1a
    exit 1
45fee1a
}
45fee1a
256eebf
if [ -z "$1" ] ; then
256eebf
	dir=.
256eebf
else
256eebf
	dir="$1"
256eebf
fi
256eebf
256eebf
git archive --prefix=$SRCNAME/ $TAG | bzip2 > $dir/$SRCNAME.tar.bz2