1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-17 15:01:40 +02:00

manual/7459+

This commit is contained in:
Tanaka Akira 1999-08-28 05:10:54 +00:00
parent 57b1435008
commit 607ba21c84
4 changed files with 19 additions and 17 deletions

View file

@ -33,6 +33,7 @@ install.fns:
FUNCTIONS_INSTALL="$(FUNCTIONS_INSTALL)" \ FUNCTIONS_INSTALL="$(FUNCTIONS_INSTALL)" \
FUNCTIONS_SUBDIRS="$(FUNCTIONS_SUBDIRS)" \ FUNCTIONS_SUBDIRS="$(FUNCTIONS_SUBDIRS)" \
INSTALL_DATA="$(INSTALL_DATA)" \ INSTALL_DATA="$(INSTALL_DATA)" \
DESTDIR="$(DESTDIR)" \
$(SHELL) $(sdir_top)/Config/installfns.sh || exit 1; \ $(SHELL) $(sdir_top)/Config/installfns.sh || exit 1; \
fi; \ fi; \
exit 0 exit 0
@ -42,6 +43,7 @@ uninstall.fns:
fndir="$(fndir)" sdir="$(sdir)" \ fndir="$(fndir)" sdir="$(sdir)" \
FUNCTIONS_INSTALL="$(FUNCTIONS_INSTALL)" \ FUNCTIONS_INSTALL="$(FUNCTIONS_INSTALL)" \
FUNCTIONS_SUBDIRS="$(FUNCTIONS_SUBDIRS)" \ FUNCTIONS_SUBDIRS="$(FUNCTIONS_SUBDIRS)" \
DESTDIR="$(DESTDIR)" \
$(SHELL) $(sdir_top)/Config/uninstallfns.sh || exit 1; \ $(SHELL) $(sdir_top)/Config/uninstallfns.sh || exit 1; \
fi; \ fi; \
exit 0 exit 0

View file

@ -4,7 +4,7 @@ if test -d $fndir.old; then
add_old=1 add_old=1
fi fi
$sdir_top/mkinstalldirs $fndir || exit 1; $sdir_top/mkinstalldirs $DESTDIR$fndir || exit 1;
# If the source directory is somewhere else, we need to force # If the source directory is somewhere else, we need to force
# the shell to expand it in that directory, then strip it off. # the shell to expand it in that directory, then strip it off.
@ -36,8 +36,8 @@ for file in $install; do
: ${add_old:=1} : ${add_old:=1}
fi fi
fi fi
$sdir_top/mkinstalldirs $instdir || exit 1 $sdir_top/mkinstalldirs $DESTDIR$instdir || exit 1
$INSTALL_DATA $sdir/$file $instdir || exit 1 $INSTALL_DATA $sdir/$file $DESTDIR$instdir || exit 1
fi fi
done done

View file

@ -164,24 +164,24 @@ uninstall: uninstall.man
# install man pages, creating install directory if necessary # install man pages, creating install directory if necessary
install.man: $(MAN) install.man: $(MAN)
$(sdir_top)/mkinstalldirs $(mandir)/man1 $(sdir_top)/mkinstalldirs $(DESTDIR)$(mandir)/man1
for file in $(MAN); do \ for file in $(MAN); do \
if test -f $$file; then \ if test -f $$file; then \
$(INSTALL_DATA) $$file $(mandir)/man1; \ $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man1; \
elif test -f $(sdir)/$$file; then \ elif test -f $(sdir)/$$file; then \
$(INSTALL_DATA) $(sdir)/$$file $(mandir)/man1; \ $(INSTALL_DATA) $(sdir)/$$file $(DESTDIR)$(mandir)/man1; \
else :; \ else :; \
fi || exit 1; \ fi || exit 1; \
done done
# install info pages, creating install directory if necessary # install info pages, creating install directory if necessary
install.info: zsh.info install.info: zsh.info
$(sdir_top)/mkinstalldirs $(infodir) $(sdir_top)/mkinstalldirs $(DESTDIR)$(infodir)
for file in zsh.info zsh.info-[1-9]*; do \ for file in zsh.info zsh.info-[1-9]*; do \
if test -f $$file; then \ if test -f $$file; then \
$(INSTALL_DATA) $$file $(infodir); \ $(INSTALL_DATA) $$file $(DESTDIR)$(infodir); \
elif test -f $(sdir)/$$file; then \ elif test -f $(sdir)/$$file; then \
$(INSTALL_DATA) $(sdir)/$$file $(infodir); \ $(INSTALL_DATA) $(sdir)/$$file $(DESTDIR)$(infodir); \
else :; \ else :; \
fi || exit 1; \ fi || exit 1; \
done done
@ -190,18 +190,18 @@ install.info: zsh.info
else true; fi else true; fi
install.html: zsh_toc.html install.html: zsh_toc.html
$(sdir_top)/mkinstalldirs $(htmldir) $(sdir_top)/mkinstalldirs $(DESTDIR)$(htmldir)
$(INSTALL_DATA) *.html $(htmldir) $(INSTALL_DATA) *.html $(DESTDIR)$(htmldir)
# uninstall man pages # uninstall man pages
uninstall.man: uninstall.man:
for file in $(MAN); do \ for file in $(MAN); do \
rm -f $(mandir)/man1/$$file; \ rm -f $(DESTDIR)$(mandir)/man1/$$file; \
done done
# uninstall info pages # uninstall info pages
uninstall.info: uninstall.info:
rm -f $(infodir)/zsh.info $(infodir)/zsh.info-[1-9]* rm -f $(DESTDIR)$(infodir)/zsh.info $(DESTDIR)$(infodir)/zsh.info-[1-9]*
# ========== DEPENDENCIES FOR CLEANUP ========== # ========== DEPENDENCIES FOR CLEANUP ==========

View file

@ -127,15 +127,15 @@ install.bin-here uninstall.bin-here:
install.modules-here: install.modules-here:
modules='$(MODULES)'; \ modules='$(MODULES)'; \
if test -n "$$modules"; then $(sdir_top)/mkinstalldirs $(MODDIR); fi; \ if test -n "$$modules"; then $(sdir_top)/mkinstalldirs $(DESTDIR)$(MODDIR); fi; \
for mod in $$modules; do \ for mod in $$modules; do \
$(INSTALL_PROGRAM) $$mod $(MODDIR)/$$mod; \ $(INSTALL_PROGRAM) $$mod $(DESTDIR)$(MODDIR)/$$mod; \
done done
uninstall.modules-here: uninstall.modules-here:
modules='$(MODULES)'; for mod in $$modules; do \ modules='$(MODULES)'; for mod in $$modules; do \
if test -f $(MODDIR)/$$mod; then \ if test -f $(DESTDIR)$(MODDIR)/$$mod; then \
rm -f $(MODDIR)/$$mod; \ rm -f $(DESTDIR)$(MODDIR)/$$mod; \
else :; fi; \ else :; fi; \
done done