svn commit: samba r16927 - in branches/SAMBA_3_0/packaging/bin: .
jerry at samba.org
jerry at samba.org
Mon Jul 10 20:40:42 GMT 2006
Author: jerry
Date: 2006-07-10 20:40:42 +0000 (Mon, 10 Jul 2006)
New Revision: 16927
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16927
Log:
back merge of a packaging fix for release numbers (from 3.0.23)
Modified:
branches/SAMBA_3_0/packaging/bin/update-pkginfo
Changeset:
Modified: branches/SAMBA_3_0/packaging/bin/update-pkginfo
===================================================================
--- branches/SAMBA_3_0/packaging/bin/update-pkginfo 2006-07-10 20:38:19 UTC (rev 16926)
+++ branches/SAMBA_3_0/packaging/bin/update-pkginfo 2006-07-10 20:40:42 UTC (rev 16927)
@@ -4,6 +4,12 @@
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 @@
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
More information about the samba-cvs
mailing list