From a207251c2fb3145201e4bbd770bb0d79c7180eb5 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Wed, 30 Oct 2002 03:50:23 +0000 Subject: Adding Buchan Milne's updates. (This used to be commit d816c35c1d8db343c76a32a6d01952d2c192b092) --- packaging/Mandrake/makerpms-cvs.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 packaging/Mandrake/makerpms-cvs.sh (limited to 'packaging/Mandrake/makerpms-cvs.sh') diff --git a/packaging/Mandrake/makerpms-cvs.sh b/packaging/Mandrake/makerpms-cvs.sh new file mode 100644 index 0000000000..72c75b772b --- /dev/null +++ b/packaging/Mandrake/makerpms-cvs.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# makerpms-cvs.sh +# A quick script to build RPMs from cvs to test packaging +# Buchan Milne + +[ $# -lt 1 ] && echo "Usage: $0 " && exit 1 + +VERSION=$1 +RELEASE=0.`date +%Y%m%d` +shift + +# Replace PRELEASE and PVERSION with release number in all files ending with +# .tmpl + +FILES=$(find . -name "*.tmpl" -type f) + +for i in $FILES;do + NEW=$(echo $i|sed -e 's/\.tmpl//g'); + cat $i |sed -e 's/PVERSION/'$VERSION'/g; s/PRELEASE/'$RELEASE'/g'> $NEW ; +done + +#Change up three directories, rename directory to samba-$VERSION, change back +#then run makerpms.sh + +( +CURRENT=$(pwd) +cd $(dirname $(dirname $(dirname $CURRENT))) +SAMBA_DIR=$(basename $(dirname $(dirname $CURRENT))) +mv $SAMBA_DIR samba-$VERSION +cd samba-$VERSION/packaging/Mandrake +sh makerpms.sh $@ +cd $(dirname $(dirname $(dirname $CURRENT))) +mv samba-$VERSION $SAMBA_DIR +) -- cgit