diff options
author | Gerald Carter <jerry@samba.org> | 2006-04-22 17:28:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:16:27 -0500 |
commit | e3763272c39dc85e7feca4fc5646225b4b266fbc (patch) | |
tree | 322d3031aca23d9690bd43660615cb531646e99a /packaging/bin | |
parent | dcef65acb5bc08ea4b61ef490a518b7e668ff2ee (diff) | |
download | samba-e3763272c39dc85e7feca4fc5646225b4b266fbc.tar.gz samba-e3763272c39dc85e7feca4fc5646225b4b266fbc.tar.xz samba-e3763272c39dc85e7feca4fc5646225b4b266fbc.zip |
r15163: packaging updates for RHEL/Fedora and break out 'pre' tag to the RPM release number
Diffstat (limited to 'packaging/bin')
-rwxr-xr-x | packaging/bin/update-pkginfo | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packaging/bin/update-pkginfo b/packaging/bin/update-pkginfo index 47f3c3c306b..bcd383e4340 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 |