From 5dc362a7098d9ecd4bfd446b59d7e895107f6e5e Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 13 Jul 2014 22:03:26 +0200 Subject: [diagnose] fix ctan url (thanks Petra\!) --- src/luaotfload-diagnostics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luaotfload-diagnostics.lua b/src/luaotfload-diagnostics.lua index e0c3c23..80e461c 100644 --- a/src/luaotfload-diagnostics.lua +++ b/src/luaotfload-diagnostics.lua @@ -667,7 +667,7 @@ local diagnose = function (job) carefully and get a clean version from CTAN or github: - × http://ctan.org/tex-archive/macros/luatex/generic/luaotfload + × http://www.ctan.org/pkg/luaotfload × https://github.com/lualatex/luaotfload/releases If you are uncertain as to how to proceed, then -- cgit v1.2.3 From c4e4c76f9d55f33ddf28bed865658bf5b67d1706 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 13 Jul 2014 22:59:16 +0200 Subject: [build] include generated files in ctan zipball --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4e21d0f..c27ffd4 100644 --- a/Makefile +++ b/Makefile @@ -124,10 +124,10 @@ $(BUILDDIR): /dev/null define make-ctandir @$(RM) -rf $(DISTDIR) -@mkdir -p $(DISTDIR) && cp $(VGND) $(CONFDEMO) $(SOURCE) $(COMPILED) $(DISTDIR) +@mkdir -p $(DISTDIR) && cp $(RESOURCES) $(DOCPDF) $(VGND) $(CONFDEMO) $(SOURCE) $(DISTDIR) endef -$(CTAN_ZIP): $(DOCS) $(SOURCE) $(COMPILED) $(TDS_ZIP) +$(CTAN_ZIP): $(DOCS) $(SOURCE) $(TDS_ZIP) @echo "Making $@ for CTAN upload." @$(RM) -- $@ $(make-ctandir) -- cgit v1.2.3 From fd29dcc265c0861e734a27690f5068c7dbc4dd6a Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 13 Jul 2014 23:54:41 +0200 Subject: [build] verify syntax of Lua files prior to packaging --- Makefile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c27ffd4..6a552c2 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,22 @@ DO_GLYPHS = $(LUA) $(GLYPHSCRIPT) > /dev/null DO_CHARS = $(LUA) $(CHARSCRIPT) > /dev/null DO_STATUS = $(LUA) $(STATUSSCRIPT) > /dev/null +define check-lua-files +@echo validating syntax +@for f in $$(find . -name '*.lua') ; do \ + echo -n checking $$f ...; \ + if texluac -p $$f &>/dev/null; then \ + echo -e " \e[1;32mgood.\e[m"; \ + else \ + echo -e " \e[1;31mBAD.\e[m"; \ + exit 1; \ + fi; \ +done +endef + show: showtargets +check: + $(check-lua-files) all: ctan builddir: $(BUILDDIR) @@ -146,7 +161,7 @@ define run-install endef $(TDS_ZIP): TEXMFROOT=./tmp-texmf -$(TDS_ZIP): $(DOCS) $(ALL_STATUS) +$(TDS_ZIP): $(DOCS) $(ALL_STATUS) check @echo "Making TDS-ready archive $@." @$(RM) -- $@ $(run-install-doc) @@ -185,6 +200,8 @@ mrproper: clean showtargets: @echo "Available targets:" @echo + @echo " check check Lua files for syntax errors" + @echo @echo " doc compile PDF documentation" @echo " resources generate resource files (chars, glyphs)" @echo -- cgit v1.2.3