vfs_full_audit: Remove some unnecessary return; statements
[Samba.git] / packaging / bin / update-pkginfo
blob7587f689d910ff148946204ef8a0d206a987a36b
1 #!/bin/bash
3 VERSION=$1
4 RELEASE=$2
5 REVISION=$3
7 if [ "x${REVISION}" = "x" ]; then
8 RPMREVISION=""
9 else
10 RPMREVISION=".${REVISION}"
13 if [ $# -ne 3 ]; then
14 echo Usage: update-pkginfo VERSION RELEASE REVISION
15 exit 1
18 DIRNAME=$(dirname $0)
19 TOPDIR=${DIRNAME}/../../
20 PACKAGINGDIR=${TOPDIR}/packaging
22 pushd ${PACKAGINGDIR} > /dev/null 2>&1
23 for f in `find . -type f -name "*.tmpl"`; do
24 f2=`echo $f | sed s/.tmpl//g`
25 echo $f2
26 sed -e s/PVERSION/$VERSION/g \
27 -e s/PRELEASE/$RELEASE/g \
28 -e s/PREVISION/${REVISION}/g \
29 -e s/PRPMREV/${RPMREVISION}/g < $f > $f2
30 done
31 popd > /dev/null 2>&1