1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

r16927: back merge of a packaging fix for release numbers (from 3.0.23)

(This used to be commit 5b4c4928ac63d6872cf13c3cdc4a9a63405bbda4)
This commit is contained in:
Gerald Carter 2006-07-10 20:40:42 +00:00 committed by Gerald (Jerry) Carter
parent 66259d06fb
commit 5d80b1dcd5

View File

@ -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