mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r16927: back merge of a packaging fix for release numbers (from 3.0.23)
This commit is contained in:
parent
84913caebd
commit
5b4c4928ac
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user