about summary refs log tree commit diff
path: root/Config/uninstallfns.sh
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-07 23:07:57 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-07 23:07:57 +0000
commitb4958a1a60bf2210143a78e52c7023ed30f800ed (patch)
treeef18f58a41509bffced5e94506954f162e828490 /Config/uninstallfns.sh
parentd14fab7bd7f9c73a1dd322798ba6f9ca416828d8 (diff)
downloadzsh-b4958a1a60bf2210143a78e52c7023ed30f800ed.tar.gz
zsh-b4958a1a60bf2210143a78e52c7023ed30f800ed.tar.xz
zsh-b4958a1a60bf2210143a78e52c7023ed30f800ed.zip
zsh-workers/7707
Diffstat (limited to 'Config/uninstallfns.sh')
-rwxr-xr-xConfig/uninstallfns.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/Config/uninstallfns.sh b/Config/uninstallfns.sh
index 655e5b8f2..97a35c0f7 100755
--- a/Config/uninstallfns.sh
+++ b/Config/uninstallfns.sh
@@ -11,18 +11,20 @@ for file in $FUNCTIONS_INSTALL; do
   fi
 done
 
+fndir=$DESTDIR$fndir
+
 for file in $install; do
   if test -f $sdir/$file; then
     if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
-      rm -f $DESTDIR$fndir/$file;
-      if test -f $DESTDIR$fndir.old/$file; then
-	mv $DESTDIR$fndir.old/$file $DESTDIR$fndir/$file
+      rm -f $fndir/$file;
+      if test -f $fndir.old/$file; then
+	mv $fndir.old/$file $fndir/$file
       fi
     else
       bfile="`echo $file | sed -e 's%^.*/%%'`"
-      rm -f "$DESTDIR$fndir/$bfile"; \
-      if test -f $DESTDIR$fndir.old/$bfile; then
-        mv $DESTDIR$fndir.old/$bfile $DESTDIR$fndir/$bfile
+      rm -f "$fndir/$bfile"; \
+      if test -f $fndir.old/$bfile; then
+        mv $fndir.old/$bfile $fndir/$bfile
       fi
     fi
   fi