37c7dae
#!/bin/bash
37c7dae
37c7dae
DATE=`date +%Y%m%d`
37c7dae
# use a real tag name here
3679ec6
VERSION=1.2.6.rc3
37c7dae
PKGNAME=389-ds-base
ad91536
TAG=${TAG:-$PKGNAME-$VERSION}
37c7dae
#SRCNAME=$PKGNAME-$VERSION-$DATE
37c7dae
SRCNAME=$PKGNAME-$VERSION
37c7dae
37c7dae
echo you must be in the ds git repo to use this
e3da190
test -d .git || {
e3da190
    echo bye
e3da190
    exit 1
e3da190
}
e3da190
37c7dae
if [ -z "$1" ] ; then
37c7dae
	dir=.
37c7dae
else
37c7dae
	dir="$1"
37c7dae
fi
37c7dae
37c7dae
git archive --prefix=$SRCNAME/ $TAG | bzip2 > $dir/$SRCNAME.tar.bz2