389-ds-base/389-ds-base-git-local.sh
Rich Megginson e7dd07ec14 389-ds-base-1.2.9.a1 alpha 1 release of 389-ds-base 1.2.9
389-ds-base-1.2.9.a1
Auto Membership
More Coverity fixes
2011-05-26 13:36:22 -06:00

24 lines
396 B
Bash

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