37c7dae
#!/bin/bash
37c7dae
37c7dae
DATE=`date +%Y%m%d`
37c7dae
# use a real tag name here
37c7dae
TAG=389-ds-base-1.2.3
37c7dae
VERSION=1.2.3
37c7dae
PKGNAME=389-ds-base
37c7dae
#SRCNAME=$PKGNAME-$VERSION-$DATE
37c7dae
SRCNAME=$PKGNAME-$VERSION
37c7dae
37c7dae
echo you must be in the ds git repo to use this
37c7dae
git status > /dev/null || echo bye
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