summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-07-10 20:40:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:12 -0500
commit5b4c4928ac63d6872cf13c3cdc4a9a63405bbda4 (patch)
tree19200e3c272f84758bfe00e8bb0f270613b4161b
parent84913caebdb461fed2c94fadfa0039b32a83cb6d (diff)
downloadsamba-5b4c4928ac63d6872cf13c3cdc4a9a63405bbda4.tar.gz
samba-5b4c4928ac63d6872cf13c3cdc4a9a63405bbda4.tar.xz
samba-5b4c4928ac63d6872cf13c3cdc4a9a63405bbda4.zip
r16927: back merge of a packaging fix for release numbers (from 3.0.23)
-rwxr-xr-xpackaging/bin/update-pkginfo8
1 files changed, 7 insertions, 1 deletions
diff --git a/packaging/bin/update-pkginfo b/packaging/bin/update-pkginfo
index bcd383e4340..020c773da08 100755
--- a/packaging/bin/update-pkginfo
+++ b/packaging/bin/update-pkginfo
@@ -4,6 +4,12 @@ VERSION=$1
RELEASE=$2
REVISION=$3
+if [ "x${REVISION}" = "x" ]; then
+ RPMREVISION=""
+else
+ RPMREVISION=".${REVISION}"
+fi
+
if [ $# -ne 3 ]; then
echo Usage: update-pkginfo VERSION RELEASE REVISION
exit 1
@@ -17,6 +23,6 @@ for f in `du -a | awk '{print $2}' | grep \.tmpl$`; do
sed -e s/PVERSION/$VERSION/g \
-e s/PRELEASE/$RELEASE/g \
-e s/PREVISION/${REVISION}/g \
- -e s/PRPMREV/.${REVISION}/g < $f > $f2
+ -e s/PRPMREV/${RPMREVISION}/g < $f > $f2
done