about summary refs log tree commit diff
path: root/Config
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-07 22:31:53 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-07 22:31:53 +0000
commitd76053481b8579bb850592e27473f0b623a5b4eb (patch)
treecca24ea0c0420df8e138cd314dd088beeb7e50bc /Config
parent971e5f553f7bd6094fb815f2dd19422b5400e49a (diff)
downloadzsh-d76053481b8579bb850592e27473f0b623a5b4eb.tar.gz
zsh-d76053481b8579bb850592e27473f0b623a5b4eb.tar.xz
zsh-d76053481b8579bb850592e27473f0b623a5b4eb.zip
manual/7703
Diffstat (limited to 'Config')
-rwxr-xr-xConfig/installfns.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/Config/installfns.sh b/Config/installfns.sh
index fd943520d..9516ca18d 100755
--- a/Config/installfns.sh
+++ b/Config/installfns.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if test -d $fndir.old; then
+if test -d $DESTDIR$fndir.old; then
   add_old=1
 fi
 
@@ -22,27 +22,27 @@ for file in $install; do
     if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
       subfile="$file"
       subdir="`echo $file | sed -e 's%/[^/]*$%%'`"
-      olddir="$fndir.old/$subdir"
-      instdir="$fndir/$subdir"
+      olddir="$DESTDIR$fndir.old/$subdir"
+      instdir="$DESTDIR$fndir/$subdir"
     else
       subfile="`echo $file | sed -e 's%^.*/%%'`"
-      olddir="$fndir.old"
-      instdir="$fndir"
+      olddir="$DESTDIR$fndir.old"
+      instdir="$DESTDIR$fndir"
     fi
-    if test -f $fndir/$subfile; then
-      if cmp $fndir/$subfile $sdir/$file >/dev/null; then :; else
+    if test -f $DESTDIR$fndir/$subfile; then
+      if cmp $DESTDIR$fndir/$subfile $sdir/$file >/dev/null; then :; else
 	$sdir_top/mkinstalldirs $olddir
-        mv $fndir/$subfile $olddir
+        mv $DESTDIR$fndir/$subfile $olddir
         : ${add_old:=1}
       fi
     fi
-    $sdir_top/mkinstalldirs $DESTDIR$instdir || exit 1
-    $INSTALL_DATA $sdir/$file $DESTDIR$instdir || exit 1
+    $sdir_top/mkinstalldirs $instdir || exit 1
+    $INSTALL_DATA $sdir/$file $instdir || exit 1
   fi
 done
 
 if test x$add_old != x1; then
-  rm -rf $fndir.old
+  rm -rf $DESTDIR$fndir.old
 fi
 
 exit 0