lilypond-devel
[Top][All Lists]
Advanced

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

make web fails


From: Karl Hammar
Subject: make web fails
Date: Fri, 12 Nov 2004 18:40:55 +0100

  $ make web
...
  /usr/bin/python ./buildscripts/mutopia-index.py -o 
/home/karl/lilypond/examples.html ./
  generating HTML list /home/karl/lilypond/examples.html

  cd /home/karl/lilypond && address@hidden  /usr/bin/python 
/home/karl/lilypond/stepmake/bin/add-html-footer.py  --name LilyPond --version 
2.5.0 `find . -name '*.html' -print`
  /bin/sh: /usr/bin/python: Argument list too long
  make[1]: *** [local-WWW-post] Error 126
  make[1]: Leaving directory `/home/karl/lilypond'
  make: *** [web] Error 2


Patch, this patch assumes that xargs is available and that
  .../add-html-footer.py a
  .../add-html-footer.py b
is equivalent to
  .../add-html-footer.py a b


$ grep ChangeLog CVS/Entries
/ChangeLog/1.2835/Fri Nov 12 06:21:36 2004//
$ head -5 ChangeLog 
2004-11-12  Karl Hammar  <address@hidden>

        * GNUmakefile.in (local-WWW-post): `find ...` overflows the
        cmdline, use xargs instead

Regards
/Karl
Index: GNUmakefile.in
===================================================================
RCS file: /cvsroot/lilypond/lilypond/GNUmakefile.in,v
retrieving revision 1.128
diff -u -r1.128 GNUmakefile.in
--- GNUmakefile.in      6 Nov 2004 10:54:57 -0000       1.128
+++ GNUmakefile.in      12 Nov 2004 17:41:44 -0000
@@ -67,12 +67,13 @@
 
 web-ext = gz html midi pdf png txt ly
 
-footify = address@hidden  $(PYTHON) $(step-bindir)/add-html-footer.py  --name 
$(PACKAGE_NAME) --version $(TOPLEVEL_VERSION)
+footify = $(PYTHON) $(step-bindir)/add-html-footer.py  --name $(PACKAGE_NAME) 
--version $(TOPLEVEL_VERSION)
+footifymail = address@hidden
 
 local-WWW-post:
        $(PYTHON) $(buildscript-dir)/mutopia-index.py -o 
$(builddir)/examples.html ./
-       cd $(builddir) && $(footify) `$(FIND) . -name '*.html' -print`
-       cd $(builddir) && rm -f `find . -name \*.html~ -print`
+       cd $(builddir) && $(FIND) . -name '*.html' -print | $(footifymail) 
xargs $(footify)
+       cd $(builddir) && find . -name \*.html~ -print | xargs rm -f
        cd $(builddir) && find Documentation input \
                $(web-ext:%=-path '*/out-www/*.%' -or) -false \
                > $(outdir)/weblist
Index: ChangeLog
===================================================================
RCS file: /cvsroot/lilypond/lilypond/ChangeLog,v
retrieving revision 1.2835
diff -u -r1.2835 ChangeLog
--- ChangeLog   12 Nov 2004 01:44:28 -0000      1.2835
+++ ChangeLog   12 Nov 2004 17:42:37 -0000
@@ -1,3 +1,8 @@
+2004-11-12  Karl Hammar  <address@hidden>
+
+       * GNUmakefile.in (local-WWW-post): `find ...` overflows the
+       cmdline, use xargs instead
+
 2004-11-11  Graham Percival  <address@hidden>
 
        * Documentation/user/lilypond-book.itely: add short warning about

reply via email to

[Prev in Thread] Current Thread [Next in Thread]