about summary refs log tree commit diff
path: root/Config/uninstallfns.sh
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-31 10:23:46 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-31 10:23:46 +0000
commit8e5365152aa58bb0d8a209efe176e1e7ae70675f (patch)
tree0a41625f8d28369c17c2fc8345d16e73a2610df8 /Config/uninstallfns.sh
parent57e98c6948f0cb64e79c4455fc692d81a75e30bf (diff)
downloadzsh-8e5365152aa58bb0d8a209efe176e1e7ae70675f.tar.gz
zsh-8e5365152aa58bb0d8a209efe176e1e7ae70675f.tar.xz
zsh-8e5365152aa58bb0d8a209efe176e1e7ae70675f.zip
manual/7562
Diffstat (limited to 'Config/uninstallfns.sh')
-rwxr-xr-xConfig/uninstallfns.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/Config/uninstallfns.sh b/Config/uninstallfns.sh
index ae1b4fef5..017f657d9 100755
--- a/Config/uninstallfns.sh
+++ b/Config/uninstallfns.sh
@@ -7,22 +7,22 @@ for file in $FUNCTIONS_INSTALL; do
   if test -f "$sdir/$file"; then
     install="$install $file"
   else
-    install="$install `echo $sdir/$file | sed -e \"s%$sdir/%%g\"`"
+    install="$install `echo '' $sdir/$file | sed -e \"s% $sdir/%%g\"`"
   fi
 done
 
 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 $fndir/$file;
-      if test -f $fndir.old/$file; then
-	mv $fndir.old/$file $fndir/$file
+      rm -f $DESTDIR$fndir/$file;
+      if test -f $DESTDIR$fndir.old/$file; then
+	mv $DESTDIR$fndir.old/$file $DESTDIR$fndir/$file
       fi
     else
       bfile="`echo $file | sed -e 's%^.*/%%'`"
-      rm -f "$fndir/$bfile"; \
-      if test -f $fndir.old/$bfile; then
-        mv $fndir.old/$bfile $fndir/$bfile
+      rm -f "$DESTDIR$fndir/$bfile"; \
+      if test -f $DESTDIR$fndir.old/$bfile; then
+        mv $DESTDIR$fndir.old/$bfile $DESTDIR$fndir/$bfile
       fi
     fi
   fi