diff options
author | cvs2svn Import User <samba-bugs@samba.org> | 2002-10-31 04:17:30 +0000 |
---|---|---|
committer | cvs2svn Import User <samba-bugs@samba.org> | 2002-10-31 04:17:30 +0000 |
commit | da560b01ba713650271486e6b1a6f0c4fb114c64 (patch) | |
tree | 0feecee4e7d7393e139281c2094289566d78f79b /packaging/Mandrake/makerpms-cvs.sh | |
parent | 3b3c7914e2cd79ee5c6e76af14e386a590aed78e (diff) | |
parent | 0af30d452d1fe7f975a8ffaabfd946bb9801e4ce (diff) | |
download | samba-da560b01ba713650271486e6b1a6f0c4fb114c64.tar.gz samba-da560b01ba713650271486e6b1a6f0c4fb114c64.tar.bz2 samba-da560b01ba713650271486e6b1a6f0c4fb114c64.zip |
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f1acef4a1cc3ce99a765a2534a50fbd41f6e2e62)
Diffstat (limited to 'packaging/Mandrake/makerpms-cvs.sh')
-rw-r--r-- | packaging/Mandrake/makerpms-cvs.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/packaging/Mandrake/makerpms-cvs.sh b/packaging/Mandrake/makerpms-cvs.sh new file mode 100644 index 0000000000..0faaf4d0ba --- /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 <bgmilne@cae.co.za> + +[ $# -lt 1 ] && echo "Usage: $0 <Samba version>" && exit 1 + +VERSION=$1cvs +RELEASE=`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 +) |