3 # A quick script to build RPMs from cvs to test packaging
4 # Buchan Milne <bgmilne@cae.co.za>
6 [ $# -lt 1 ] && echo "Usage: $0 <Samba version>" && exit 1
9 RELEASE
=0.
`date +%Y%m%d`
12 # Replace PRELEASE and PVERSION with release number in all files ending with
15 FILES
=$
(find .
-name "*.tmpl" -type f
)
18 NEW
=$
(echo $i|
sed -e 's/\.tmpl//g');
19 cat $i |
sed -e 's/PVERSION/'$VERSION'/g; s/PRELEASE/'$RELEASE'/g'> $NEW ;
22 #Change up three directories, rename directory to samba-$VERSION, change back
27 pushd $
(dirname $
(dirname $
(dirname $CURRENT)))
28 SAMBA_DIR
=$
(basename $
(dirname $
(dirname $CURRENT)))
29 mv $SAMBA_DIR samba-
$VERSION
30 pushd samba-
$VERSION/source
33 pushd samba-
$VERSION/packaging
/Mandrake
36 mv samba-
$VERSION $SAMBA_DIR