256eebf
#!/bin/bash
256eebf
256eebf
DATE=`date +%Y%m%d`
256eebf
# use a real tag name here
a41b9f6
VERSION=1.2.6.rc2
256eebf
PKGNAME=389-ds-base
b767ad9
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
9de19f7
test -d .git || {
9de19f7
    echo bye
9de19f7
    exit 1
9de19f7
}
9de19f7
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