source tarball from a local git repo and a tag - also grabs the correct
versions of mod_admserv and mod_restartd from CVS
18 lines
566 B
Bash
Executable file
18 lines
566 B
Bash
Executable file
#!/bin/bash
|
|
|
|
DATE=`date +%Y%m%d`
|
|
TAG=389-admin-1.1.9
|
|
CVSTAG=three89Admin_1_1_9
|
|
VERSION=1.1.9
|
|
PKGNAME=389-admin
|
|
SRCNAME=${PKGNAME}-${VERSION}
|
|
CVSROOT=:pserver:anonymous@cvs.fedoraproject.org:/cvs/dirsec
|
|
echo you must be in the admin server git repo to use this
|
|
git status > /dev/null || echo bye
|
|
if [ -z "$1" ] ; then
|
|
dir=.
|
|
else
|
|
dir="$1"
|
|
fi
|
|
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 )
|
|
rm -rf $dir/$SRCNAME
|