diff options
author | Karl Berry <karl@freefriends.org> | 2011-07-31 21:24:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-07-31 21:24:14 +0000 |
commit | 1f05122edd891a75b0c057209e9ff46a265d3119 (patch) | |
tree | 3731fbbe1af59da1288970f59b160d35204dc56c /Master/texmf-dist/source/latex/unicode-math/Makefile | |
parent | 4fcd51f020e5d12da9e8fa9dcff83c632385cb24 (diff) |
unicode-math (31jul11)
git-svn-id: svn://tug.org/texlive/trunk@23287 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/Makefile')
-rw-r--r-- | Master/texmf-dist/source/latex/unicode-math/Makefile | 62 |
1 files changed, 35 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/Makefile b/Master/texmf-dist/source/latex/unicode-math/Makefile index c8c6e60b096..b75e1574945 100644 --- a/Master/texmf-dist/source/latex/unicode-math/Makefile +++ b/Master/texmf-dist/source/latex/unicode-math/Makefile @@ -50,13 +50,15 @@ SUITE = $(PKG)-testsuite XMPL = unimath-example.ltx SYM = unimath-symbols -COPY = cp -a +COPY = cp -a +MKTEXLSR = mktexlsr testdir=testfiles builddir=build tds=$(builddir)/$(PKG).tds UPDATE = `which dtx-update` || true # TODO: generalise +SPEAKFAIL := `say 'Test failed!'` || true # Mac OS X only? # these files end up in the CTAN directory: @@ -68,12 +70,13 @@ BUILDDOC = $(addprefix $(builddir)/,$(DOC)) # -LTXSOURCE = $(PKG).sty $(TBL) +LTXSOURCE = $(PKG).sty $(PKG).lua $(TBL) # and this is how the TDS zip file is produced: INSFILES = \ $(tds)/tex/latex/$(PKG)/unicode-math.sty \ + $(tds)/tex/latex/$(PKG)/unicode-math.lua \ $(tds)/tex/latex/$(PKG)/unicode-math-table.tex OTHERFILES = \ @@ -117,6 +120,11 @@ $(builddir)/$(PKG).sty: $(builddir)/$(PKG).dtx cd $(builddir) && \ tex $(PKG).dtx > /dev/null ; +$(builddir)/$(PKG).lua: $(builddir)/$(PKG).dtx + echo "Updating $@" + cd $(builddir) && \ + tex $(PKG).dtx > /dev/null ; + $(builddir)/$(PKG).pdf: $(builddir)/$(PKG).dtx $(BUILDSOURCE) cd $(builddir) && \ xelatex $(PKG).dtx && \ @@ -144,15 +152,6 @@ $(builddir)/README: $(builddir)/README.markdown mv -f $< $@ -# Test suite PDF - -$(builddir)/$(SUITE).pdf: $(builddir)/$(SUITE).ltx $(BUILDSUITE) $(builddir)/$(testdir) - cd $(builddir) && \ - xelatex $(SUITE).ltx - - - - ##### CTAN INSTALLATION ##### TDS = $(builddir)/$(PKG).tds.zip @@ -164,13 +163,13 @@ $(TDS): $(tds)/$(PKG).tds.zip $(tds)/$(PKG).tds.zip: $(TDSFILES) cd $(tds); \ - zip -r $(PKG).tds.zip ./* -x *.DS_Store -x *.safe.pdf + zip -r $(PKG).tds.zip ./* -x *.DS_Store -x *.safe.pdf *.ignore.pdf ctan: $(BUILDCTAN) tds cd $(builddir); \ zip -r \ ../$(PKG).zip $(CTANFILES) $(PKG).tds.zip \ - -x *.DS_Store -x *.safe.pdf + -x *.DS_Store -x *.safe.pdf *.ignore.pdf $(tds)/doc/latex/$(PKG)/% \ $(tds)/tex/latex/$(PKG)/% \ @@ -189,7 +188,7 @@ TEXMFLOCAL=$(shell kpsewhich --var-value TEXMFLOCAL) install: $(INSFILES) if test -n "$(TEXMFHOME)" ; then \ echo "Installing in '$(TEXMFHOME)'."; \ - $(COPY) $(tds)/* $(TEXMFHOME); \ + $(COPY) $(tds)/* $(TEXMFHOME) && $(MKTEXLSR); \ else \ echo "Cannot locate your home texmf tree. Specify manually with\n\n make install TEXMFHOME=/path/to/texmf\n" ; \ false ; \ @@ -198,7 +197,7 @@ install: $(INSFILES) install-sys: $(INSFILES) if test -n "$(TEXMFLOCAL)" ; then \ echo "Installing in '$(TEXMFLOCAL)'."; \ - $(COPY) $(tds)/* $(TEXMFLOCAL); \ + $(COPY) $(tds)/* $(TEXMFLOCAL) && $(MKTEXLSR); \ else \ echo "Cannot locate your system-wide local texmf tree. Specify manually with\n\n make install TEXMFLOCAL=/path/to/texmf\n" ; \ false ; \ @@ -247,13 +246,11 @@ COMPARE_OPTS = -density 300x300 -metric ae -fuzz 35% # Redefine this to print output if you need: REDIRECT = > /dev/null -LTXSOURCE = $(NAME).sty +LTXSOURCE = $(NAME).sty $(NAME).lua TESTLIST = umtest-suite-X.tex umtest-suite-L.tex umtest-suite-F.tex -SUITESOURCE = \ - $(testdir)/umtest-preamble.tex \ - $(testdir)/$(TESTLIST) +SUITESOURCE = $(addprefix $(testdir)/,umtest-preamble.tex $(TESTLIST)) TESTOUT = $(wildcard $(testdir)/*.safe.pdf) BUILDTESTSRC = $(subst $(testdir)/,$(builddir)/,$(subst .safe.pdf,.ltx,$(TESTOUT))) @@ -270,19 +267,26 @@ BUILDSUITE = $(subst $(testdir)/,$(builddir)/,$(SUITESOURCE)) BUILDFILES = $(BUILDSOURCE) $(BUILDSUITE) $(BUILDTESTSRC) $(BUILDTESTTARGET) +# Test suite PDF + +$(builddir)/$(SUITE).pdf: $(builddir)/$(SUITE).ltx $(BUILDSUITE) + cd $(builddir) && \ + xelatex $(SUITE).ltx + + #### All tests #### foo: echo $(BUILDTESTTARGET) check: $(TESTLIST) - + $(TESTLIST): $(BUILDFILES) cd $(testdir) && \ - ls X*.ltx | sed -e 's/\(.*\).ltx/\\inserttest{\1}/g' > umtest-suite-X.tex && \ - ls L*.ltx | sed -e 's/\(.*\).ltx/\\inserttest{\1}/g' > umtest-suite-L.tex && \ - ls F*.ltx | sed -e 's/\(.*\).ltx/\\inserttest{\1}/g' > umtest-suite-F.tex; - + ls X*.safe.pdf | sed -e 's/\(.*\).safe.pdf/\\inserttest{\1}/g' > umtest-suite-X.tex && \ + ls L*.safe.pdf | sed -e 's/\(.*\).safe.pdf/\\inserttest{\1}/g' > umtest-suite-L.tex && \ + ls F*.safe.pdf | sed -e 's/\(.*\).safe.pdf/\\inserttest{\1}/g' > umtest-suite-F.tex; + $(builddir)/%: $(testdir)/% @mkdir -p $(builddir); \ $(COPY) $< $@ @@ -294,17 +298,17 @@ $(builddir)/%: % #### Generating new tests #### -lonelystub = $(shell cd $(testdir); ls | egrep '[XL].(.*\.ltx)|[XL].(.*\.safe\.pdf)' | cut -d . -f 1 | uniq -u ) +lonelystub = $(shell cd $(testdir); ls | egrep '[XL].(.*\.ltx)$$|[XL].(.*\.safe\.pdf)$$' | cut -d . -f 1 | uniq -u ) lonelyfile = $(addsuffix .safe.pdf,$(lonelystub)) lonelypath = $(addprefix $(testdir)/,$(lonelyfile)) lonelytest = $(addprefix $(builddir)/,$(addsuffix .pdf,$(lonelystub))) -Xlonelystub = $(shell cd $(testdir); ls | egrep -o '(F.*\.ltx)|(F.*-X\.safe\.pdf)' | sed -e s/-X.safe.pdf// -e s/.ltx// | uniq -u | uniq ) +Xlonelystub = $(shell cd $(testdir); ls | egrep -o '(F.*\.ltx)$$|(F.*-X\.safe\.pdf)$$' | sed -e s/-X.safe.pdf// -e s/.ltx// | uniq -u | uniq ) Xlonelyfile = $(addsuffix -X.safe.pdf,$(Xlonelystub)) Xlonelypath = $(addprefix $(testdir)/,$(Xlonelyfile)) Xlonelytest = $(addprefix $(builddir)/,$(addsuffix -X.pdf,$(Xlonelystub))) -Llonelystub = $(shell cd $(testdir); ls | egrep -o '(F.*\.ltx)|(F.*-L\.safe\.pdf)' | sed -e s/-L.safe.pdf// -e s/.ltx// | uniq -u | uniq ) +Llonelystub = $(shell cd $(testdir); ls | egrep -o '(F.*\.ltx)$$|(F.*-L\.safe\.pdf)$$' | sed -e s/-L.safe.pdf// -e s/.ltx// | uniq -u | uniq ) Llonelyfile = $(addsuffix -L.safe.pdf,$(Llonelystub)) Llonelypath = $(addprefix $(testdir)/,$(Llonelyfile)) Llonelytest = $(addprefix $(builddir)/,$(addsuffix -L.pdf,$(Llonelystub))) @@ -333,6 +337,7 @@ $(builddir)/F%-L.diff.pdf: $(builddir)/F%-L.pdf echo 'F$*: Test passed.' ; \ else \ echo 'F$*: Test failed.' ; \ + $(SPEAKFAIL) ; \ false ; \ fi @@ -346,6 +351,7 @@ $(builddir)/F%-X.diff.pdf: $(builddir)/F%-X.pdf echo 'F$*: Test passed.' ; \ else \ echo 'F$*: Test failed.' ; \ + $(SPEAKFAIL) ; \ false ; \ fi @@ -374,6 +380,7 @@ $(builddir)/L%.diff.pdf: $(builddir)/L%.pdf echo 'L$*: Test passed.' ; \ else \ echo 'L$*: Test failed.' ; \ + $(SPEAKFAIL) ; \ false ; \ fi @@ -387,6 +394,7 @@ $(builddir)/X%.diff.pdf: $(builddir)/X%.pdf echo 'X$*: Test passed.' ; \ else \ echo 'X$*: Test failed.' ; \ + $(SPEAKFAIL) ; \ false ; \ fi |