version, then this is version is *not* meant for producing nice output
(but to keep your patchsets up to date). It might not even compile.
+The same goes for a version with a 4th version number, eg
+
+ 1.2.3.mypatch2
+
+It will be safer if you download 1.2.3 or wait for 1.2.4.
+
sect(REQUIREMENTS)
# Bootstrap the init proces. List a file identifies your package.
AC_INIT(make/lilypond.lsm.in)
-AC_CONFIG_HEADER($CONFIGFILE.hh:config.hh.in)
+AC_CONFIG_HEADER($CONFIGFILE.h:config.hh.in)
# Bootstrap StepMake configure
AC_STEPMAKE_INIT
--- /dev/null
+
+export PATH:=$(topdir)/lily/out:$(topdir)/buildscripts/out:$(PATH)
+export MFINPUTS:=$(topdir)/mf/:.:$(MFINPUTS)::
+export TEXINPUTS:=$(topdir)/tex/:.:$(TEXINPUTS)::
+export LILYINCLUDE=$(topdir)/init:$(topdir)/mf/out
+
--- /dev/null
+
+
+$(outdir)/%.gif: $(outdir)/%.ps
+ sh $(buildscripts)/ps-to-gifs.sh $<
+ -mv $(name-stem)-page*.gif $(outdir)/
+ touch $@
+
+$(outdir)/%.ly.txt: %.ly
+ ln -f $< $@
+
+$(outdir)/%.fly.txt: %.fly
+ ln -f $< $@
+
+
+
+# don't junk intermediate .dvi files. They're easier to view than
+# .ps or .gif
+.PRECIOUS: $(outdir)/%.dvi
+
+$(outdir)/%.dvi: %.ly
+ sh $(depth)/scripts/ly2dvi.sh -S $(topdir) -o $(outdir) $<
+ -mv $(basename $<).midi $(outdir)
+
+$(outdir)/%.dvi: %.fly
+ sh $(depth)/scripts/ly2dvi.sh -S $(topdir) -o $(outdir) $<
+ -mv $(basename $<).midi $(outdir)
--- /dev/null
+
+
+all: $(OUT_FILES)
+
+
+local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(gif_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
--- /dev/null
+# make/Mutopia.make
+
+
# Written by Jan Arne Fagertun <Jan.A.Fagertun@energy.sintef.no>
# Sat Nov 22 22:26:43 CET 1997
#
-# $Id: ly2dvi.sh,v 1.2 1998/08/14 11:16:34 fred Exp $
+# $Id: ly2dvi.sh,v 1.3 1998/08/21 22:05:30 fred Exp $
#
# Original LaTeX file made by Mats Bengtsson, 17/8 1997
#
-VERSION="0.12.jcn1"
+VERSION="0.12"
NAME=ly2dvi.sh
IDENTIFICATION="$NAME $VERSION"
NOW=`date`
# NEWS
-# 0.12.jcn1
-# - mudelaDefs really fixed (sorry, PC)
-
# 0.12
# - -S/--sourcedir switch
+#
#
#0.11.jcn3
if [ "$SOURCEDIR" != "" ]; then
# apparently MakeTeXTFM can't handle relative dirs
SOURCEDIR=`cd $SOURCEDIR; pwd`
- export LILYINCLUDE="$SOURCEDIR/init:$SOURCEDIR/mf/out:$LILYINCLUDE"
- export TEXINPUTS="$SOURCEDIR/tex:$TEXINPUTS:"
- export MFINPUTS="$SOURCEDIR/mf:$MFINPUTS:"
- export LILYPOND_EXECUTABLE="$SOURCEDIR/lily/out/lilypond"
+ LILYINCLUDE="$SOURCEDIR/init:$SOURCEDIR/mf/out:$LILYINCLUDE"
+ TEXINPUTS="$SOURCEDIR/tex:$TEXINPUTS:"
+ MFINPUTS="$SOURCEDIR/mf:$MFINPUTS:"
+ LILYPOND_EXECUTABLE="$SOURCEDIR/lily/out/lilypond"
+ export MFINPUTS LILYPOND_EXECUTABLE TEXINPUTS SOURCEDIR
fi
#
#
mudelaDefs(){
# Include \def\mudela-definitions
-# The aim here is to pick up the definition for the
-# current file, then any other file.
#
-mudelatmp=$TMP/mudelaDefs$$
-# Use `cat' to prevent filenames being prepended
-#
-cat "$File" $OF | fgrep "$MU_DEF" > $mudelatmp
for L in $MU_DEF
do
- # This converts \def\mudelatitle{fred}
- # to \mudelatitle{fred} or to
- # \def\mudelatitle{fred}
- # and stops after the first one found.
- sed -n '/\\def\\'"$L"'{\([^}]*\)}.*$/{
- s//'"`regexp_quote \"$1\"`"'\\'"$L"'{\1}%/p
- q
- }' $mudelatmp >> $LatF
+ for F in "$File" "$OF"
+ do
+ LL=`sed -n 's/\\\\def\\\\'"$L"'{\([^}]*\)}.*$/\1/p' "$F"`
+ [ "$LL" ] && {
+ Echo "$1\\"$L'{'"$LL"'}%' >> $LatF
+ break
+ }
+ done
done
-rm -f $mudelatmp
}
#
-#
startFile(){
#
# LaTeX file name
#!@PYTHON@
name = 'ly2dvi'
-version = '0.0.1'
+version = '0.0.2'
import sys
import os
\\end{document}
""")
this.__fd.close()
- stat = os.system('latex \'\\nonstopmode \\input %s\'' %
- (this.__outfile))
+ if ( os.name == 'posix' ):
+ stat = os.system('latex \'\\nonstopmode \\input %s\'' %
+ (this.__outfile))
+ else: # Windows shells don't eat the single quotes
+ stat = os.system('latex \\nonstopmode \\input %s' %
+ (this.__outfile))
if stat:
sys.exit('ExitBadLatex')
if os.path.isfile(outfile):
def get_texfile_path (this, var):
path =''
- cmd =('kpsewhich tex %s' % var)
+ cmd =('kpsewhich tex %s 2>&1' % var)
pipe = os.popen (cmd, 'r')
path = pipe.readline ()[:-1] # chop off \n
- if not path:
+ if pipe.close():
path = os.path.join(this.get('root'), 'texmf', 'tex', 'lilypond', var)
fd = open(path, 'r')
p=os.path.split(p[0])
this.__set('root',p[0],'init')
+ t=''
if os.environ.has_key ('TEXINPUTS'):
t = os.pathsep + os.environ['TEXINPUTS']
os.environ['TEXINPUTS'] = os.path.join(this.get('root'), 'texmf',
infile.open(file)
infile.setVars() # first pass set variables
infile.close()
- Props.printProps()
+# Props.printProps()
if firstfile:
outfile.start(file)
else:
--- /dev/null
+#empty
+
+$(configheader): $(depth)/config.h
+ cp $< $@
+
+$(configheader): $(depth)/config.h
+ cp $< $@
--- /dev/null
+# Documentation files
+AT_FILES = $(BLURBS) #
+at-dir = $(doc-dir)/
+at-ext = .in
+
+
+#
+YO_FILES := $(wildcard *.yo)
+POD_FILES := $(wildcard *.pod)
+TEXINFO_FILES := $(wildcard *.texinfo)
+OUTYO_FILES = $(addprefix $(outdir)/,$(YO_FILES))
+OUTPOD_FILES = $(addprefix $(outdir)/,$(POD_FILES))
+OUTTEXINFO_FILES = $(addprefix $(outdir)/,$(TEXINFO_FILES))
+
+#
+ALL_DOC_FILES = $(POD_FILES) $(TEXINFO_FILES) $(YO_FILES)
+OUTTXT_FILES = $(OUTYO_FILES:.yo=.txt) $(OUTIN_FILES:.yo=.txt)
+OUTHTML_FILES = $(OUTYO_FILES:.yo=.html) $(OUTIN_FILES:.yo=.html) # $(OUTREADME_HTML_FILES)
+# OUTTEXINFO_FILES= $(addprefix $(outdir)/, $(addsuffix .texinfo,$(basename $(YO_FILES) .yo)))
+# OUTTEXINFO_FILES = $(outdir)/topinfo.texinfo $(outdir)/mutopia.texinfo
+OUTREADME_TXT_FILES=$(addprefix $(outdir)/,$(addsuffix .txt, $(README_TOP_FILES)))
+OUTREADME_HTML_FILES=$(addprefix $(outdir)/,$(addsuffix .html, $(README_TOP_FILES)))
+
+
+ALL_SOURCES += $(ALL_DOC_FILES)
--- /dev/null
+# Executable.make
+
+# dependency list of executable:
+#
+
+default: $(EXECUTABLE)
+
+$(EXECUTABLE): $(configheader) $(O_FILES) $(outdir)/version.hh $(MODULE_LIBES)
+ $(foreach a, $(MODULE_LIBS), $(MAKE) -C $a && ) true
+ $(LD_COMMAND) $(O_FILES) $(LOADLIBES)
+
+exe: $(EXECUTABLE)
+
+
+
+localinstall: installexe
+
+localuninstall: uninstallexe
+
+installexe: all
+ -$(INSTALL) -d $(bindir)
+ $(foreach a, $(EXECUTABLES), \
+ $(INSTALL) -m 755 $(outdir)/$(a) $(bindir)/$(a)$(DOTEXE) && \
+ strip $(bindir)/$(a)$(DOTEXE) && ) true
+ $(foreach a, $(SEXECUTABLES), \
+ $(INSTALL) -m 755 $(outdir)/$(a) $(bindir) &&) true
+
+uninstallexe:
+ $(foreach a, $(EXECUTABLES), rm -f $(bindir)/$(a)$(DOTEXE) &&) true
+ $(foreach a, $(SEXECUTABLES), rm -f $(bindir)/$(a) &&) true
+
+
+%/$(outdir)/library.a:
+ $(MAKE) -C $(dir $@)/.. default
--- /dev/null
+
+
+spec: $(OUTSPEC_FILES)
+
+$(OUTSPEC_FILES): $(depth)/VERSION
+$(OUTLSM_FILES): $(depth)/VERSION
--- /dev/null
+
+$(outdir)/%.dvi: %.mf
+ mf $<
+ gftodvi $(basename $<)
+ mv $(basename $<).dvi $(outdir)
+ rm $(basename $<).*gf
+
+$(outdir)/%.log: %.mf
+ mf $<
+ mv $(@F) $@
+ rm $(basename $< ).*gf
+
--- /dev/null
+
+MF_FILES = $(wildcard *.mf)
+FONT_FILES = $(wildcard *[0-9].mf)
+EXTRA_DIST_FILES += $(MF_FILES)
+
--- /dev/null
+# Scripts.make
+
+
+
+
+$(outdir)/%: %.pl
+ cat $< | $(sed-atvariables) > $@
+ chmod 755 $@
+
+#FIXME. Check for bash?
+$(outdir)/%: %.sh
+ cat $< | $(sed-atvariables) > $@
+ chmod 755 $@
+
+
+$(outdir)/%: %.py
+ cat $< | $(sed-atvariables) > $@
+ chmod 755 $@
+
--- /dev/null
+
+all: $(PERL_SCRIPTS) $(PYTHON_SCRIPTS) $(SH_SCRIPTS)
--- /dev/null
+
+
+PERL_SCRIPTS_IN := $(wildcard *.pl)
+PERL_SCRIPTS = $(addprefix $(outdir)/, $(PERL_SCRIPTS_IN:.pl=))
+SH_SCRIPTS_IN := $(wildcard *.sh)
+SH_SCRIPTS = $(addprefix $(outdir)/, $(SH_SCRIPTS_IN:.sh=))
+PYTHON_SCRIPTS_IN := $(wildcard *.py)
+PYTHON_SCRIPTS = $(addprefix $(outdir)/, $(PYTHON_SCRIPTS_IN:.py=))
+ALL_SCRIPTS_IN = $(SH_SCRIPTS_IN) $(PERL_SCRIPTS_IN) $(PYTHON_SCRIPTS_IN)
+EXTRA_DIST_FILES += $(ALL_SCRIPTS_IN)
--- /dev/null
+# -*-Makefile-*-
+# title Toplevel_rules.make
+
+# empty
+
--- /dev/null
+# -*-Makefile-*-
+# title Toplevel_vars.make
+
+# override Generic_vars.make:
+# do not dist ./Makefile (is copied from make/Toplevel.make)
+#
+DIST_FILES := $(EXTRA_DIST_FILES)
+#
+
--- /dev/null
+# Yolily_Debian_rules.make
+
+#empty
--- /dev/null
+# Yolily_Debian_targets.make
+
+default: $(OUTCONF_FILES)
+
+
+$(outdir)/%: %
+ rm -f $@
+ ln $< $@
+
+$(outdir)/control: $(addprefix $(outdir)/, $(BLURBS))
+
+$(outdir)/%: $(doc-dir)/%.in
+ rm -f $@
+ cat $< | sed 's%^% %' > $@
+
+localdist: default
--- /dev/null
+# Yolily_Debian_vars.make
+
+#empty
+
--- /dev/null
+# Yolily_topdoc_rules.make
+
+# empty
+
--- /dev/null
+# Yolily_topdoc_targets.make
+
+default: do-doc
+
+# urg
+$(outdir)/%.html: %.yo
+ $(YODL2HTML) -doutdir=$(outdir) --live-data=3 -o $@.in $<
+ $(sed-version) < $@.in > $@
+ rm -f $@.in
+ $(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
+
+
+copy-to-top:
+ $(foreach i, $(TO_TOP_FILES), \
+ cp $(i) $(depth)/ && ) true
--- /dev/null
+# Yolily_topdoc_vars.make
+
+# INFO_FILES = $(outdir)/$(package).info
+
+TO_TOP_FILES=$(addprefix $(outdir)/, $(README_TOP_FILES))
+
--- /dev/null
+# -*-Makefile-*-
+# title Yolily_Toplevel_rules.make
+
+# empty
--- /dev/null
+# -*-Makefile-*-
+# title Yolily_Toplevel_targets.make
+
+local-dist: do-top-doc
+
+$(package-icon):
+ $(MAKE) -C Documentation/pictures icon
+
+do-top-doc:
+ -$(MAKE) -C Documentation/topdocs/ README_TOP_FILES="$(README_TXT_FILES)" copy-to-top
+
+$(README_TXT_FILES): do-top-doc
+
+
+htmldoc:
+ $(MAKE) CONFIGSUFFIX='www' local-WWW
+ $(MAKE) CONFIGSUFFIX='www' -C Documentation WWW
+ rm -f `find . -name \*.html~ -print`
+ 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 $(depth)/$(distname).diff.gz out-www
+ tar cfz $(outdir)/htmldoc.tar.gz `cat wwwlist` `ls *.gif out-www/$(distname).diff.gz $(ERRORLOG)` index.html
+
+
+# if you fix this, please fix yodl too!
+check-top-web:
+ $(MAKE) -C Documentation/topdocs WWW
+
--- /dev/null
+# -*-Makefile-*-
+# title Yolily_Toplevel_vars.make
+
+#empty
+