zsh-workers
 help / color / mirror / code / Atom feed
* Empty man pages are installed (if yodl is not available)
@ 2008-04-26 19:33 Jun T.
  0 siblings, 0 replies; only message in thread
From: Jun T. @ 2008-04-26 19:33 UTC (permalink / raw)
  To: zsh-workers

It is rather tedious (and not necessary) to install yodl to
every machine on which I want to quickly test the latest CVS.

If yodl is not installed, "make" fails while making man pages,
of course, but empty man pages are created by the "touch"
command. Then "make install" will install these empty man
pages, replacing the pre-existing ones.

I know I can type
make install.bin install.modules install.fns
(or "make mandir=/xxx/yyy install")
but I frequently forget this...

How about modifying Doc/Makefile.in so that empty man pages
are not installed?


Index: Doc/Makefile.in
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Makefile.in,v
retrieving revision 1.41
diff -u -r1.41 Makefile.in
--- Doc/Makefile.in	27 Feb 2008 18:24:41 -0000	1.41
+++ Doc/Makefile.in	26 Apr 2008 19:20:59 -0000
@@ -278,6 +278,7 @@
  install.man: man
  	${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(mandir)/man1
  	for file in $(MAN); do \
+	    test -s $(sdir)/$$file || exit 1; \
  	    $(INSTALL_DATA) $(sdir)/$$file $(DESTDIR)$(mandir)/man1/`echo $ 
$file | sed 's|zsh|$(tzsh)|'` || exit 1; \
  	done
  .PHONY: install.man


-----
Jun


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-26 19:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-26 19:33 Empty man pages are installed (if yodl is not available) Jun T.

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).