summaryrefslogtreecommitdiff
path: root/packaging
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 /packaging
parentd68e4a15039afc58760d0eed1a83ce8862ddeca4 (diff)
downloadsamba-49b84197e0e055bc6045051874a76268d766a4f7.tar.gz
samba-49b84197e0e055bc6045051874a76268d766a4f7.tar.bz2
samba-49b84197e0e055bc6045051874a76268d766a4f7.zip
packaging: make update-pkginfo callable from any directory
Michael
Diffstat (limited to 'packaging')
-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 ed34db0bb3..7587f689d9 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