This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
389-admin/389-admin-git-local.sh
Richard Allen Megginson 251ce2f92c This is the 1.1.9 release Added 389-admin-git-local.sh to construct a
source tarball from a local git repo and a tag - also grabs the correct
    versions of mod_admserv and mod_restartd from CVS
2009-10-07 15:50:27 +00:00

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