summaryrefslogtreecommitdiff
path: root/packaging/bin/update-pkginfo
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/bin/update-pkginfo')
-rwxr-xr-xpackaging/bin/update-pkginfo18
1 files changed, 9 insertions, 9 deletions
diff --git a/packaging/bin/update-pkginfo b/packaging/bin/update-pkginfo
index 7587f689d91..486c8c70d4b 100755
--- a/packaging/bin/update-pkginfo
+++ b/packaging/bin/update-pkginfo
@@ -11,21 +11,21 @@ else
fi
if [ $# -ne 3 ]; then
- echo Usage: update-pkginfo VERSION RELEASE REVISION
- exit 1
+ echo Usage: update-pkginfo VERSION RELEASE REVISION
+ exit 1
fi
DIRNAME=$(dirname $0)
TOPDIR=${DIRNAME}/../../
PACKAGINGDIR=${TOPDIR}/packaging
-pushd ${PACKAGINGDIR} > /dev/null 2>&1
-for f in `find . -type f -name "*.tmpl"`; do
- f2=`echo $f | sed s/.tmpl//g`
- echo $f2
- sed -e s/PVERSION/$VERSION/g \
+pushd ${PACKAGINGDIR} >/dev/null 2>&1
+for f in $(find . -type f -name "*.tmpl"); do
+ f2=$(echo $f | sed s/.tmpl//g)
+ echo $f2
+ sed -e s/PVERSION/$VERSION/g \
-e s/PRELEASE/$RELEASE/g \
-e s/PREVISION/${REVISION}/g \
- -e s/PRPMREV/${RPMREVISION}/g < $f > $f2
+ -e s/PRPMREV/${RPMREVISION}/g <$f >$f2
done
-popd > /dev/null 2>&1
+popd >/dev/null 2>&1