]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.9
authorfred <fred>
Tue, 26 Mar 2002 21:25:46 +0000 (21:25 +0000)
committerfred <fred>
Tue, 26 Mar 2002 21:25:46 +0000 (21:25 +0000)
22 files changed:
Documentation/GNUmakefile
Documentation/pictures/GNUmakefile
Documentation/programs.yo
Documentation/topinfo.yo
buildscripts/ps-to-gifs.sh
buildscripts/ps-to-pngs.sh [new file with mode: 0644]
config.make.in
lily/music-list.cc
make/lilypond.spec.in
make/mutopia-rules.make
make/mutopia-targets.make
make/mutopia-vars.make
make/substitute.make
stepmake/NEWS
stepmake/VERSION
stepmake/bin/package-diff.py
stepmake/bin/package-zip.sh
stepmake/bin/package-zip32.sh
stepmake/config.make.in
stepmake/stepmake/documentation-rules.make
stepmake/stepmake/yolily-topdoc-targets.make
stepmake/stepmake/yolily-toplevel-targets.make

index 22da57bfe083c6f62987df1e8e581af375ef6890..76f54de9717399c37d4f927f798df6e7d3eb6660 100644 (file)
@@ -16,5 +16,5 @@ include $(depth)/make/stepmake.make
 
 default: do-doc
 
-texinfo: $(outdir)/$(package).info
+info: $(outdir)/$(package).info
 
index a4fceddda318824c217bb12c1b1cc9b8e9ce8c79..488c762d9be8f7dec00cd36514f87e60a26bcef2 100644 (file)
@@ -3,14 +3,17 @@ depth = ../..
 STEPMAKE_TEMPLATES=documentation
 XPM_FILES=$(wildcard *.xpm)
 OUTGIF_FILES = $(addprefix $(outdir)/,$(XPM_FILES:.xpm=.gif))
+OUTPNG_FILES = $(addprefix $(outdir)/,$(XPM_FILES:.xpm=.png))
 
 EXTRA_DIST_FILES= $(XPM_FILES)
 
 include $(depth)/make/stepmake.make
 
 gifs: $(OUTGIF_FILES)
+pngs: $(OUTPNG_FILES)
 
-local-WWW: $(OUTGIF_FILES)
+# local-WWW: $(OUTGIF_FILES)
+local-WWW: $(OUTPNG_FILES)
 
 icon: $(outdir)/lelie_icon.gif
        cp $< $(depth)/$(outdir)/$(package)-icon.gif
index c32fc4171718b908c58024cf84f6994d2a13e759..e3efaf6ed54ff11dc46e9dea9f9a05fcec82d58b 100644 (file)
@@ -8,7 +8,7 @@ chapter(Programs)
 
 COMMENT(prepare for texinfoing manpages)
 redef(manpage)(5)()
-redef(manpagename)(2)(nodeprefix()nodetext(ARG2)chapter(ARG1)nodeprefix(ARG1))
+redef(manpagename)(2)(nodeprefix()nodetext(ARG2)chapter(ARG1)nodeprefix(ARG1 ))
 redef(manpageauthor)(0)(sect(Authors))
 redef(manpagesection)(1)(sect(ARG1))
 
index 0eff2fc942aab73156a73aff465db4bfe9005ab6..88f16caa2241eb454f2dbb38a78472d5688f1995 100644 (file)
@@ -1,32 +1,44 @@
-COMMENT(
-URG
-don't try to make html from this
-)
+COMMENT( URG don't try to make html from this)
+
 whentexinfo(
-nodetext(Your Rights.)
+
+nodetext(Your Rights.)  COMMENT(set different text)
 chapter(Copying)
 LilyPond is Free Software.  See file(COPYING) for details.
 
 
 COMMENT(prepare for texinfoing manpages)
 redef(manpage)(5)()
-redef(manpagename)(2)(nodeprefix()nodetext(ARG2)chapter(ARG1)nodeprefix(ARG1))
+redef(manpagename)(2)(nodetext(ARG2)chapter(ARG1))
 redef(manpageauthor)(0)(sect(Authors))
 redef(manpagesection)(1)(sect(ARG1))
 
+COMMENT(prepare for texinfoing articles)
+redef(article)(3)(chapter(ARG1))
+redef(latexlayoutcmds)(1)()
+redef(htmlbodyopt)(2)()
+
 COMMENT(redef(includefile)(1)(INCLUDEFILE(man/ARG1)))
 includefile(programs.yo)
 
-COMMENT(prepare for texinfoing articles)
-redef(article)(3)(nodeprefix()chapter(ARG1)nodeprefix(ARG1))
-redef(article)(3)(nodeprefix()chapter(ARG1)nodeprefix(Tutorial))
+redef(article)(3)(nodeprefix()chapter(ARG1)nodeprefix(Tutorial ))
+COMMENT(yodl2texinfo should be able to cope now, although ugly...)
+redef(article)(3)(chapter(ARG1))
 
 redef(includefile)(1)(INCLUDEFILE(tex/ARG1))
 includefile(tutorial.yo)
 
-COMMENT(prepare for texinfoing articles)
-redef(article)(3)(nodeprefix()chapter(ARG1)nodeprefix(ARG1))
-redef(article)(3)(nodeprefix()chapter(ARG1)nodeprefix(Mutopia))
+redef(article)(3)(nodeprefix()chapter(ARG1)nodeprefix(Refman ))
+COMMENT(yodl2texinfo should be able to cope now, although ugly...)
+redef(article)(3)(chapter(ARG1))
+
+redef(includefile)(1)(INCLUDEFILE(tex/ARG1))
+includefile(refman.yo)
+
+redef(article)(3)(nodeprefix()chapter(ARG1)nodeprefix(Mutopia ))
+COMMENT(yodl2texinfo should be able to cope now, although ugly...)
+redef(article)(3)(chapter(ARG1))
+
 redef(includefile)(1)(INCLUDEFILE(ARG1))
 includefile(mutopia.yo)
 
index 675d40e91f4ca12ce5dd393f0379d7b3c20daa64..12ea5773394b804cd289b824d70f766026ea7835 100644 (file)
@@ -1,14 +1,16 @@
 #!/bin/sh
-# ps-to-gifs, convert PS to multiple gifs
-  
+# ps-to-gifs, convert PS to multiple gifs or other bitmaps
+
 usage()
 {
     cat <<EOF
+Convert PS to multiple gifs or other bitmaps
 Usage: ps-to-gifs.sh [OPTION]... [FILE]
 Options:
   -h, --help         this help
   -c, --crop         crop output
   -o, --output=NAME  set output base
+  -p, --png          convert to png
   -t, --transparent  change white to transparent
 EOF
 }
@@ -18,6 +20,8 @@ if [ $# -lt 1 ]; then
     exit 2;
 fi
 CROP=cat
+GIF=gif
+PNMTOGIF=ppmtogif
 
 while [ $# -gt 0 ]; do
 opt=$1
@@ -37,6 +41,10 @@ shift
         ;;
     --o*=*) OUTFILE=`echo $opt | sed -e s/"^.*="//`
         ;;
+    -p|--p*)
+       GIF=png
+       PNMTOGIF=pnmtopng
+       ;;
     -*)
         echo "ps-to-gifs: unknown option: \`$opt'"
        exit 1
@@ -54,24 +62,24 @@ fi
 if [ "x$OUTFILE" = "x" ]; then
        BASE=`dirname $FILE`/`basename $FILE .ps`
 else
-       BASE=`dirname $OUTFILE`/`basename $OUTFILE .gif`
+       BASE=`dirname $OUTFILE`/`basename $OUTFILE .$GIF`
 fi
 
 # urg, pipe breaks
-rm -f $BASE{.ppm,.gif} $BASE-page*{.ppm,.gif}
+rm -f $BASE{.ppm,.$GIF} $BASE-page*{.ppm,.$GIF}
 
 # generate the pixmap at twice the size, then rescale (for antialiasing)
 cat $FILE | gs -sDEVICE=ppmraw -sOutputFile="$BASE-page%d.ppm" -r200 -dNOPAUSE - -c quit $FILE
 # quant is soo slow
-# cat $PPMFILE | ppmquant 2 | pnmscale 0.3333 | pnmcrop | ppmtogif $color > $OUTFILE
+# cat $PPMFILE | ppmquant 2 | pnmscale 0.3333 | pnmcrop | $PNMTOGIF $color > $OUTFILE
 PPMS=`ls $BASE*ppm`
 for i in $PPMS; do
-    o=`dirname $i`/`basename $i .ppm`.gif
-    cat $i | pnmscale 0.5 | $CROP | ppmtogif $color > $o
+    o=`dirname $i`/`basename $i .ppm`.$GIF
+    cat $i | pnmscale 0.5 | $CROP | $PNMTOGIF $color > $o
     rm $i
 done
 
 if [ "x$OUTFILE" != "x" ]; then
-       mv $BASE-page1.gif $BASE.gif
+       mv $BASE-page1.$GIF $BASE.$GIF
 fi
 
diff --git a/buildscripts/ps-to-pngs.sh b/buildscripts/ps-to-pngs.sh
new file mode 100644 (file)
index 0000000..2a3f363
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+# ps-to-pngs, convert PS to multiple pngs
+  
+ps-to-gifs --png $*
index b0f83348dd54fca2febd4b6b3af6ea1323e06768..1cc983d7c58531a06d853054f26b76685b48fc8b 100644 (file)
@@ -48,6 +48,7 @@ FLEX = @FLEX@
 LN = @LN@
 LN_S = @LN_S@
 MSGFMT = @MSGFMT@
+PATHSEP = @PATHSEP@
 PERL = @PERL@
 PYTHON = @PYTHON@
 TAR= @TAR@
@@ -60,5 +61,4 @@ YODL2MSLESS= @YODL2MSLESS@
 YODL2TEXINFO= @YODL2TEXINFO@
 YODL2TXT= @YODL2TXT@
 ZIP = @ZIP@
-PATHSEP = @PATHSEP@
 
index a14a6ce44c50b927982c8e83bf77dbd1d52ce42c..b9b72ded25d2237249ec15d4e6963c849a3ba8b9 100644 (file)
@@ -102,7 +102,7 @@ Music_list::do_relative_octave (Musical_pitch last, bool ret_first)
 
 
 Music_list::Music_list (Music_list const &s)
-  : Pointer_list<Music*> (s)
+  : Pointer_list<Music*> ()
 {
   for (PCursor<Music*> i(s.top()); i.ok (); i++)
     add_music (i->clone());
@@ -146,5 +146,6 @@ Request_chord::to_relative_octave (Musical_pitch last)
 
 
 Music_list::Music_list ()
+  : Pointer_list<Music*> ()
 {
 }
index 4f47dcb672c4b3731fca470fb9b7277608b52f79..1864cc4b325bfbbd877f836cbe2717e27401ab77 100644 (file)
@@ -19,7 +19,7 @@ Prereq: tetex
 %build
 ./configure --disable-checking --disable-debugging --enable-printing --prefix=/usr --enable-optimise --enable-shared --enable-tex-dir='${prefix}/lib/texmf/texmf/tex/generic' --enable-mf-dir='${prefix}/lib/texmf/texmf/fonts/source/'
 make all
-make -C Documentation texinfo || true
+make -C Documentation info || true
 make htmldoc
 
 %install
index 0b16e7e68a694829e3f5b383b228132490d6ab40..23887b901c61acb09e03c518de03ad14ffaabf27 100644 (file)
@@ -5,6 +5,11 @@ $(outdir)/%.gif: $(outdir)/%.ps
        -mv $(name-stem)-page*.gif $(outdir)/
        touch $@
 
+$(outdir)/%.png: $(outdir)/%.ps
+       sh $(buildscripts)/ps-to-pngs.sh $<
+       -mv $(name-stem)-page*.png $(outdir)/
+       touch $@
+
 $(outdir)/%.ly.txt: %.ly
        ln -f $< $@
 
index 541d10b0168d4a77607f181647193ecd542c3822..11b4a35299335c16fabe98790a729b4b760d13c8 100644 (file)
@@ -3,7 +3,7 @@
 all: $(OUT_FILES)
 
 
-local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(gif_examples)
+local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(png_examples)
        (cd $(outdir); $(PYTHON) ../$(buildscripts)/mutopia-index.py --package=$(topdir) --prefix=../ --suffix=/$(outdir) $(html_subdirs) $(all_examples))
        $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=$(depth)/$(outdir)/index.html $(outdir)/index.html
        echo $^ > $(depth)/wwwlist
index 92ef7c0e5a478863cdf90bfeae5594fb587954ef..d140f286cf24d9dbe250c5b5347f9df84196280a 100644 (file)
@@ -17,6 +17,7 @@ all_examples=$(flexamples) $(examples)
 
 ps_examples=$(addprefix $(outdir)/, $(addsuffix .ps.gz, $(all_examples)))
 gif_examples=$(addprefix $(outdir)/, $(addsuffix .gif, $(all_examples)))
+png_examples=$(addprefix $(outdir)/, $(addsuffix .png, $(all_examples)))
 
 html_subdirs=$(addprefix --subdirs ,$(SUBDIRS))
 
index 92df5d2cef3ed7038281ed88534d3a202c2a27ca..0a11afa384f9e0732fb4db059c1069e1a122d18a 100644 (file)
@@ -11,6 +11,7 @@ ATVARIABLES = \
   DIR_DATADIR\
   PACKAGE\
   package\
+  PATHSEP\
   PERL\
   PYTHON\
   SHELL\
index cc68cff9219b8df90aa424a2c41755c5e553f272..ac662d058d1e9e02e5b84a7d9a11e28218f01649 100644 (file)
@@ -1,3 +1,7 @@
+pl 50
+       - bf's: PATHSEP
+       - png
+
 pl 49
        - use yodl2ms and striproff for txt conversion
        - bf: chmod fail
index eb46477624aaff48f97d76730100a90fdf81b8b0..a044234f747d838df61fb135d6321692de2ee207 100644 (file)
@@ -1,7 +1,7 @@
 PACKAGE_NAME=StepMake
 MAJOR_VERSION=0
 MINOR_VERSION=1
-PATCH_LEVEL=49
+PATCH_LEVEL=50
 MY_PATCH_LEVEL=
 
 # use the above to send patches, always empty for released version:
index 2e361e453dea0731ad41f97931a85f39af340333..0d1aba2820f2db5ee5ef36f2a9b4e26a64927a8b 100644 (file)
@@ -79,8 +79,8 @@ def remove_configure (dir):
 
        # should do 'make distclean ?'
        os.system ('rm -rf debian/out')
-       os.system ('rm -f Makefile config.cache config.h config.hh config.log config.make config.status')
-       os.system ('rm -f stepmake/Makefile stepmake/config.hh stepmake/config.log stepmake/config.make')
+       os.system ('rm -f GNUmakefile config.cache config.h config.hh config.log config.make config.status configure')
+       os.system ('rm -f stepmake/GNUmakefile stepmake/config.hh stepmake/config.log stepmake/config.status stepmake/config.make')
 
        # ugh: symlinks
        os.system ('rm -f stepmake/stepmake/stepmake')
@@ -140,9 +140,10 @@ def makediff (fromdir, todir, patch_name):
        if i == -1:
                f.write (to_str + '\n')
        else:
-               i = i + len (version_tuple_to_str (flags.to_version)) + 1
+               i = i + len (version_tuple_to_str (flags.to_version))
                state_vec = state_vec[:i]
                f.write (state_vec)
+               f.write ('\n')
        f.write ('++state\n')
        f.close ()
                        
index f8c800118afe8ffb64b03e8489d7b69dce73ed03..e325688fdd5c679ee17911687dc02f432aa60f1e 100644 (file)
@@ -44,6 +44,7 @@ export PATH=/usr/doos/bin:$PATH
 ./configure --host=i386-pc-linux --target=i386-pc-cygwin32 --prefix=/usr --enable-debugging --enable-printing --enable-checking
 
 make
+make -C Documentation info || true
 rm -rf $builddir
 make prefix="$builddir/usr" DOTEXE=.exe install
 make prefix="$builddir/usr" installextradoc
index 0c2556ca511e7e28478aa05c71cd53c6e9a3dde4..60174c018cccdf5694eea26c633d1e180d15d4d3 100644 (file)
@@ -50,6 +50,9 @@ if ! make ; then
     exit 1
 fi
 
+# failure allowed
+make -C Documentation info
+
 if ! make install ; then
     echo "make install failed"
     exit 1
index 5ab98dd83adaadaaf1cfe405004815180ab4f772..1cc983d7c58531a06d853054f26b76685b48fc8b 100644 (file)
@@ -48,6 +48,7 @@ FLEX = @FLEX@
 LN = @LN@
 LN_S = @LN_S@
 MSGFMT = @MSGFMT@
+PATHSEP = @PATHSEP@
 PERL = @PERL@
 PYTHON = @PYTHON@
 TAR= @TAR@
index e7ac7462470d4b4b630b3fc42fb56a56d1b60920..2cb0849430f4a3bad87d57b146532fec04e7a41d 100644 (file)
@@ -3,11 +3,14 @@
 # special rules for the documentation section.
 # There are too many to add to the general rules
 
-.SUFFIXES: .1 .data .html .gif .xpm .tex .txt
+.SUFFIXES: .1 .data .html .gif .png .tex .txt .xpm
 
 $(outdir)/%.gif: %.xpm
        xpmtoppm $< | ppmtogif > $@
 
+$(outdir)/%.png: %.xpm
+       xpmtoppm $< | pnmtopng > $@
+
 # use striproff?
 $(outdir)/%.txt: $(outdir)/%.1
        troff -man -Tascii $< | grotty -b -u -o > $@
index 447b7e43166522fb3d8971541ee3b5110187f533..19fcff909b16c2c9026eca13a01c1db1bec5f409 100644 (file)
@@ -10,7 +10,7 @@ $(outdir)/%.html: %.yo
        $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=index.html --news=$(depth)/NEWS $@
 
 local-WWW:
-       -cp $(outdir)/*gif $(outdir)/index.html $(depth)  # don't fail if not making website
+       -cp $(outdir)/*png $(outdir)/index.html $(depth)  # don't fail if not making website
 
 
 copy-to-top: 
index c41b64867c284e091de76103d2d521836042bfb7..a11f4896c176c3272f0a2911e3e2d9d7603018f4 100644 (file)
@@ -19,7 +19,7 @@ htmldoc:
        find `find Documentation -type d -name 'out-www'` -not -name '*dvi' -not -name '*ly' -not -name '*tex' -not -name '*.ps' -not -name 'out-www' > wwwlist
        -ln -f $(patch-dir)/$(distname).diff.gz out-www
        -ln -f $(depth)/$(distname).diff.gz out-www
-       tar cfz $(outdir)/htmldoc.tar.gz  `cat wwwlist` `ls *.gif out-www/$(distname).diff.gz $(ERRORLOG)`  index.html
+       tar cfz $(outdir)/htmldoc.tar.gz  `cat wwwlist` `ls *.png out-www/$(distname).diff.gz $(ERRORLOG)`  index.html
 
 
 # if you fix this, please fix yodl too!