summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-02-10 23:52:40 +0100
committerMichael Adam <obnox@samba.org>2009-02-11 00:29:16 +0100
commit49b84197e0e055bc6045051874a76268d766a4f7 (patch)
tree75ac5ab6f29cf21ac0ea6636619053174279f11c
parentd68e4a15039afc58760d0eed1a83ce8862ddeca4 (diff)
downloadsamba-49b84197e0e055bc6045051874a76268d766a4f7.tar.gz
packaging: make update-pkginfo callable from any directory
Michael
-rwxr-xr-xpackaging/bin/update-pkginfo7
1 files changed, 6 insertions, 1 deletions
diff --git a/packaging/bin/update-pkginfo b/packaging/bin/update-pkginfo
index ed34db0bb3d..7587f689d91 100755
--- a/packaging/bin/update-pkginfo
+++ b/packaging/bin/update-pkginfo
@@ -15,6 +15,11 @@ if [ $# -ne 3 ]; then
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
@@ -23,4 +28,4 @@ for f in `find . -type f -name "*.tmpl"`; do
-e s/PREVISION/${REVISION}/g \
-e s/PRPMREV/${RPMREVISION}/g < $f > $f2
done
-
+popd > /dev/null 2>&1