summaryrefslogtreecommitdiffstats
path: root/packaging/bin
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-04-22 17:28:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:27 -0500
commit7c83df11599f856a6c71f8133511d1d2604b24ef (patch)
tree1ae292c15370f50435a9e35863dd7ab321f80a48 /packaging/bin
parent7b75d2c650cc8dfe8c9d5b9e396afce1cedb0645 (diff)
downloadsamba-7c83df11599f856a6c71f8133511d1d2604b24ef.tar.gz
samba-7c83df11599f856a6c71f8133511d1d2604b24ef.tar.xz
samba-7c83df11599f856a6c71f8133511d1d2604b24ef.zip
r15163: packaging updates for RHEL/Fedora and break out 'pre' tag to the RPM release number
(This used to be commit e3763272c39dc85e7feca4fc5646225b4b266fbc)
Diffstat (limited to 'packaging/bin')
-rwxr-xr-xpackaging/bin/update-pkginfo12
1 files changed, 9 insertions, 3 deletions
diff --git a/packaging/bin/update-pkginfo b/packaging/bin/update-pkginfo
index 47f3c3c306..bcd383e434 100755
--- a/packaging/bin/update-pkginfo
+++ b/packaging/bin/update-pkginfo
@@ -2,15 +2,21 @@
VERSION=$1
RELEASE=$2
+REVISION=$3
-if [ $# -ne 2 ]; then
- echo Usage: update-pkginfo VERSION RELEASE
+if [ $# -ne 3 ]; then
+ echo Usage: update-pkginfo VERSION RELEASE REVISION
exit 1
fi
+# PREV=`echo ${REVISION} | sed 's/[^0-9]//g'`
+# PREV="."`echo ${REVISION} | sed 's/[0-9]//g'`".${PREV}"
for f in `du -a | awk '{print $2}' | grep \.tmpl$`; do
f2=`echo $f | sed s/.tmpl//g`
echo $f2
- sed -e s/PVERSION/$VERSION/g -e s/PRELEASE/$RELEASE/g < $f > $f2
+ sed -e s/PVERSION/$VERSION/g \
+ -e s/PRELEASE/$RELEASE/g \
+ -e s/PREVISION/${REVISION}/g \
+ -e s/PRPMREV/.${REVISION}/g < $f > $f2
done