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
+pl 8.jcn3
+ - gif -> png
+ * ps-to-pngs.sh
+ * stepmake
+ * website
+ * yodl-1.31.4 (to be released)
+ - target 'texinfo' -> 'info'
+
pl 8.jcn2
- more doco in texinfo (with yodl pl3)
- bf's: package-diff
MAJOR_VERSION=1
MINOR_VERSION=0
PATCH_LEVEL=8
-MY_PATCH_LEVEL=jcn2
+MY_PATCH_LEVEL=jcn3
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
AC_SUBST(LN)
AC_SUBST(LN_S)
AC_SUBST(INSTALL)
- AC_DEFINE_UNQUOTED(DIRSEP, '${DIRSEP}')
- AC_DEFINE_UNQUOTED(PATHSEP, '${PATHSEP}')
+ AC_DEFINE_UNQUOTED(DIRSEP, '${DIRSEP}')
+ AC_SUBST(PATHSEP)
+ AC_DEFINE_UNQUOTED(PATHSEP, '${PATHSEP}')
AC_STEPMAKE_DATADIR
#!/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@
MAJOR_VERSION=1
MINOR_VERSION=0
PATCH_LEVEL=8
-MY_PATCH_LEVEL=jcn2
+MY_PATCH_LEVEL=jcn3
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
1.0.8
1.0.8.jcn1
1.0.8.jcn2
+1.0.8.jcn3
%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:
AC_SUBST(LN)
AC_SUBST(LN_S)
AC_SUBST(INSTALL)
- AC_DEFINE_UNQUOTED(DIRSEP, '${DIRSEP}')
- AC_DEFINE_UNQUOTED(PATHSEP, '${PATHSEP}')
+ AC_DEFINE_UNQUOTED(DIRSEP, '${DIRSEP}')
+ AC_SUBST(PATHSEP)
+ AC_DEFINE_UNQUOTED(PATHSEP, '${PATHSEP}')
AC_STEPMAKE_DATADIR
./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!