cb636dd
#!/bin/bash
cb636dd
cb636dd
DATE=`date +%Y%m%d`
cb636dd
# use a real tag name here
cb636dd
TAG=389-ds-base-1.2.3
cb636dd
VERSION=1.2.3
cb636dd
PKGNAME=389-ds-base
cb636dd
#SRCNAME=$PKGNAME-$VERSION-$DATE
cb636dd
SRCNAME=$PKGNAME-$VERSION
cb636dd
cb636dd
echo you must be in the ds git repo to use this
cb636dd
git status > /dev/null || echo bye
cb636dd
if [ -z "$1" ] ; then
cb636dd
	dir=.
cb636dd
else
cb636dd
	dir="$1"
cb636dd
fi
cb636dd
cb636dd
git archive --prefix=$SRCNAME/ $TAG | bzip2 > $dir/$SRCNAME.tar.bz2