summaryrefslogtreecommitdiff
path: root/Config/installfns.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Config/installfns.sh')
-rwxr-xr-xConfig/installfns.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/Config/installfns.sh b/Config/installfns.sh
index a0ef6a25b..90258c7dd 100755
--- a/Config/installfns.sh
+++ b/Config/installfns.sh
@@ -14,8 +14,16 @@ allfuncs="`cd $sdir_top; echo ${allfuncs}`"
for file in $allfuncs; do
if test -f $sdir_top/$file; then
if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
- subdir="`echo $file | sed -e 's%/[^/]*$%%' -e 's%^Functions/%%'`"
- instdir="$fndir/$subdir"
+ case "$file" in
+ Completion/*)
+ subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
+ instdir="$fndir/$subdir"
+ ;;
+ *)
+ subdir="`echo $file | sed -e 's%/[^/]*$%%' -e 's%^Functions/%%'`"
+ instdir="$fndir/$subdir"
+ ;;
+ esac
else
instdir="$fndir"
fi