summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-09-17 23:57:48 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-09-17 23:57:48 +0000
commit8e965d1593d220b945d0dca601d4cfd848f79c83 (patch)
tree8287d7b4842c830d526655f1896e7bd9c260ce99 /scripts
parent2d3a503aa8651215e7bb939b995c33356bbce913 (diff)
downloadquilt-8e965d1593d220b945d0dca601d4cfd848f79c83.tar.gz
- Only add compat/ directory to PATH if it exists. Only create it
when necessary.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patchfns.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index 2e0b9b0..308548a 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -24,12 +24,15 @@ DB_VERSION=2
: ${QUILT_PC:=.pc}
# Support compatibility layer
-if [ -r @QUILT@/compat/compatfns ]
+if [ -d @QUILT@/compat ]
then
- source @QUILT@/compat/compatfns
+ export PATH="@QUILT@/compat:$PATH"
+ if [ -r @QUILT@/compat/compatfns ]
+ then
+ source @QUILT@/compat/compatfns
+ fi
fi
-export PATH="@QUILT@/compat:$PATH"
unset CDPATH
shopt -s dotglob