Bill Allombert on Wed, 12 Jan 2011 15:36:29 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Path to perl


On Tue, Jan 11, 2011 at 03:16:02PM -0800, Jeroen Demeyer wrote:
> On 2011-01-11 12:18, Karim Belabas wrote:
> > All other scripts are maintainer-only : they generate files to be
> > included in the release, but the scripts themselves no longer need to be
> > run by the end user to build the package.
> 
> Unfortunately, this doesn't seem to be completely true, with the
> attached patch it *does* work as you say.

I do not think your patch fix the issue. (you need perl to generate usersch3.tex from
src/desc/pari.desc).

This one should. It is a bit annoying to have to duplicate the generation of
src/funclist due to the Makefile split, though.

Cheers,
Bill.
Index: config/DOC_Make.SH
===================================================================
--- config/DOC_Make.SH	(révision 12811)
+++ config/DOC_Make.SH	(copie de travail)
@@ -27,9 +27,6 @@
 %.dvi: %.tex \$(MACROS)
 	tex \$<
 
-usersch3.tex: ../src/desc/doc_make ../src/desc/pari.desc usersFUNCS.tex
-	cd ../src/desc && \$(PERL) doc_make > ../../doc/usersch3.tex
-
 libpari.pdf: \$(PARI_TEX) \$(MACROS)
 	-rm -f libpari.std
 	pdftex libpari
@@ -125,3 +122,15 @@
 .dumbpod.3:
 	pod2man --section=3 --center="PARI/GP Manual, part \$*" --release=$version.$patch --lax \$*.dumbpod > tmp_man && mv tmp_man \$*.3
 EOT
+
+if test -n "$add_funclist"; then
+  cat >> doc/Makefile << EOT
+
+$src/funclist::
+	@-cd $desc && find ../functions -name CVS -prune -o -name .\\* -prune -o -type f -print | env LANG= LC_COLLATE= LC_ALL= sort | xargs cksum > funclist\$(TMPSUF)
+	@-sh $cfg/mv-if-diff $desc/funclist\$(TMPSUF) $src/funclist
+
+usersch3.tex: $add_funclist ../src/desc/doc_make usersFUNCS.tex
+	cd ../src/desc && \$(PERL) doc_make > ../../doc/usersch3.tex
+EOT
+fi