summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-07-10 20:37:40 +0000
committerGerald Carter <jerry@samba.org>2006-07-10 20:37:40 +0000
commit4d5ef356461e7939a83e95096e5fdeeb277912db (patch)
treea2a5a18f00772d2df7ca274ff42cef4598d009e9 /packaging
parente3b0c59151fc45a7bcc1c099ed71c9783f15acd5 (diff)
downloadsamba-4d5ef356461e7939a83e95096e5fdeeb277912db.tar.gz
samba-4d5ef356461e7939a83e95096e5fdeeb277912db.tar.xz
samba-4d5ef356461e7939a83e95096e5fdeeb277912db.zip
r16925: final changes for 3.0.23
Diffstat (limited to 'packaging')
-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