diff options
author | Gerald Carter <jerry@samba.org> | 2006-07-10 20:40:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:12 -0500 |
commit | 5d80b1dcd53bd0771e13f7241ab0fad238304c5b (patch) | |
tree | 550ef4ce6d14eb7cc2db78240046353ecbf8b00a /packaging/bin | |
parent | 66259d06fb8c3f24480b0fe46b93e5dc34b5e0a5 (diff) | |
download | samba-5d80b1dcd53bd0771e13f7241ab0fad238304c5b.tar.gz |
r16927: back merge of a packaging fix for release numbers (from 3.0.23)
(This used to be commit 5b4c4928ac63d6872cf13c3cdc4a9a63405bbda4)
Diffstat (limited to 'packaging/bin')
-rwxr-xr-x | packaging/bin/update-pkginfo | 8 |
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 |