default: do-doc
-texinfo: $(outdir)/$(package).info
+info: $(outdir)/$(package).info
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
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))
-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)
#!/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
}
exit 2;
fi
CROP=cat
+GIF=gif
+PNMTOGIF=ppmtogif
while [ $# -gt 0 ]; do
opt=$1
;;
--o*=*) OUTFILE=`echo $opt | sed -e s/"^.*="//`
;;
+ -p|--p*)
+ GIF=png
+ PNMTOGIF=pnmtopng
+ ;;
-*)
echo "ps-to-gifs: unknown option: \`$opt'"
exit 1
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
--- /dev/null
+#!/bin/sh
+# ps-to-pngs, convert PS to multiple pngs
+
+ps-to-gifs --png $*
LN = @LN@
LN_S = @LN_S@
MSGFMT = @MSGFMT@
+PATHSEP = @PATHSEP@
PERL = @PERL@
PYTHON = @PYTHON@
TAR= @TAR@
YODL2TEXINFO= @YODL2TEXINFO@
YODL2TXT= @YODL2TXT@
ZIP = @ZIP@
-PATHSEP = @PATHSEP@
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());
Music_list::Music_list ()
+ : Pointer_list<Music*> ()
{
}
%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
-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 $< $@
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
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))
DIR_DATADIR\
PACKAGE\
package\
+ PATHSEP\
PERL\
PYTHON\
SHELL\
+pl 50
+ - bf's: PATHSEP
+ - png
+
pl 49
- use yodl2ms and striproff for txt conversion
- bf: chmod fail
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:
# 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')
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 ()
./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
exit 1
fi
+# failure allowed
+make -C Documentation info
+
if ! make install ; then
echo "make install failed"
exit 1
LN = @LN@
LN_S = @LN_S@
MSGFMT = @MSGFMT@
+PATHSEP = @PATHSEP@
PERL = @PERL@
PYTHON = @PYTHON@
TAR= @TAR@
# 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 > $@
$(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:
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!