summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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