Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 3.1.6-pws-2: Config/installfns.sh
- X-seq: zsh-workers 7562
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: 3.1.6-pws-2: Config/installfns.sh
- Date: Tue, 31 Aug 1999 07:34:45 +0000
- Cc: pws@xxxxxx
- In-reply-to: <rsq3dx0mwp3.fsf@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <rsq3dx0mwp3.fsf@xxxxxxxxxxxxxxxxx>
On Aug 31, 12:54pm, Tanaka Akira wrote:
} Subject: PATCH: 3.1.6-pws-2: Config/installfns.sh
}
} I found that Functions/{Makefile,Makefile.in,README.zftp} are
} installed to prefix/share/zsh/functions.
The uninstallfns.sh script needs the same fix, and needs to have the DESTDIR
references inserted as well.
Index: uninstallfns.sh
===================================================================
@@ -7,22 +7,22 @@
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
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author