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