diff options
author | Michael Adam <obnox@samba.org> | 2009-02-10 23:52:40 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-02-11 00:27:50 +0100 |
commit | 0331720a321c849141349eb7982ee83298ec47c1 (patch) | |
tree | ca9d8fb77b86e045c7cd2b05fdba7a01e6395e15 /packaging | |
parent | bfa086eef3db925ae32d554dbb7edb0f53df35e2 (diff) | |
download | samba-0331720a321c849141349eb7982ee83298ec47c1.tar.gz samba-0331720a321c849141349eb7982ee83298ec47c1.tar.xz samba-0331720a321c849141349eb7982ee83298ec47c1.zip |
packaging: make update-pkginfo callable from any directory
Michael
(cherry picked from commit 7ea90835ebf6e2f2c6f325760800d8361d087ede)
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/bin/update-pkginfo | 7 |
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 |