251ce2f
#!/bin/bash
251ce2f
251ce2f
DATE=`date +%Y%m%d`
251ce2f
TAG=389-admin-1.1.9
251ce2f
CVSTAG=three89Admin_1_1_9
251ce2f
VERSION=1.1.9
251ce2f
PKGNAME=389-admin
251ce2f
SRCNAME=${PKGNAME}-${VERSION}
251ce2f
CVSROOT=:pserver:anonymous@cvs.fedoraproject.org:/cvs/dirsec
251ce2f
echo you must be in the admin server git repo to use this
251ce2f
git status > /dev/null || echo bye
251ce2f
if [ -z "$1" ] ; then
251ce2f
	dir=.
251ce2f
else
251ce2f
	dir="$1"
251ce2f
fi
251ce2f
git archive --format=tar --prefix=$SRCNAME/ $TAG | ( cd $dir ; tar xf - ; cd $SRCNAME ; cvs -d "$CVSROOT" -z3 export -r$CVSTAG mod_admserv mod_restartd ; cd .. ; tar cfj $dir/$SRCNAME.tar.bz2 $SRCNAME )
251ce2f
rm -rf $dir/$SRCNAME