summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2006-02-04 04:18:26 +0000
committerPaul W. Frields <stickster@gmail.com>2006-02-04 04:18:26 +0000
commit989cc1e41865d333118aecaf8edd75298e1d511a (patch)
tree1d68e98a5554410a53ac953d025eaa1348ce3638 /bin
parent4ca852ed8544c5fc20abc99c7f04d6fe77f50e5f (diff)
downloadfedora-doc-utils-989cc1e41865d333118aecaf8edd75298e1d511a.tar.gz
fedora-doc-utils-989cc1e41865d333118aecaf8edd75298e1d511a.tar.xz
fedora-doc-utils-989cc1e41865d333118aecaf8edd75298e1d511a.zip
This seems to make packaging work again... probably needs checking for kludginess
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fdpsh8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/fdpsh b/bin/fdpsh
index f4baef2..71b3544 100755
--- a/bin/fdpsh
+++ b/bin/fdpsh
@@ -14,9 +14,11 @@ ME=`basename $0`
FDPBINDIR=`dirname $0`
USAGE="usage: ${ME} [-c cmd] [file [arg..]]"
#
-PATH=${FDPBINDIR}:${PATH} export PATH
-FDPDIR=${FDPBINDIR}/../.. export FDPDIR
-SHELL=${FDPBINDIR}/${ME} export SHELL
+PATH=${FDPBINDIR}:${PATH} export PATH
+# This change keeps pathnames from growing out of control
+FDPDIR=$(pushd ${FDPBINDIR}/../.. 2>&1 >/dev/null \
+ && pwd && popd 2>&1 >/dev/null) export FDPDIR
+SHELL=${FDPBINDIR}/${ME} export SHELL
#
FDPLOG=/tmp/fdpsh.log
#