diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-12-12 15:17:20 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-12-12 15:20:13 +0100 |
commit | ca1314ef7ab02f875ffc26be058df95691234faf (patch) | |
tree | 8a26cf643b9834bb176efb6c9f30eae0b2d5cd61 | |
parent | f5a70716053da2da21673da0398e3af83034916f (diff) | |
download | luaotfload-ca1314ef7ab02f875ffc26be058df95691234faf.tar.gz |
[mkimport,build] integrate with main makefile
-rw-r--r-- | Makefile | 6 | ||||
-rwxr-xr-x | scripts/mkimport | 5 |
2 files changed, 3 insertions, 8 deletions
@@ -39,7 +39,6 @@ GRAPH = filegraph DOCSRC = $(addprefix $(DOCSRCDIR)/$(NAME), -main.tex -latex.tex) LOADERSRC = $(wildcard $(FONTLOADERSRCDIR)/*.lua) LOADERSRC += $(wildcard $(FONTLOADERSRCDIR)/*.tex) -LOADERSRC += $(PACKAGEDIR)/luaotfload-package.lua GRAPHSRC = $(DOCSRCDIR)/$(GRAPH).dot MANSRC = $(DOCSRCDIR)/$(TOOLNAME).rst $(DOCSRCDIR)/$(CONFNAME).rst @@ -99,8 +98,7 @@ DO_GLYPHS = $(LUA) $(GLYPHSCRIPT) > /dev/null DO_CHARS = $(LUA) $(CHARSCRIPT) > /dev/null DO_STATUS = $(LUA) $(STATUSSCRIPT) --fontloader=$(LOADER) >/dev/null DO_IMPORT = $(LUA) $(IMPORTSCRIPT) import >/dev/null -DO_PACKAGE = $(LUA) $(IMPORTSCRIPT) package \ - $(PACKAGEDIR)/luaotfload-package.lua $(LOADER) >/dev/null +DO_PACKAGE = $(LUA) $(IMPORTSCRIPT) package $(LOADER) >/dev/null define check-lua-files @echo validating syntax @@ -200,7 +198,7 @@ $(TDS_ZIP): $(DOCS) $(ALL_STATUS) check sign: $(CTAN_ZIPSIG) -.PHONY: install manifest clean mrproper show showtargets check import news +.PHONY: package install manifest clean mrproper show showtargets check import news install: @echo " ××××××××××××××××××××××××××××××××" diff --git a/scripts/mkimport b/scripts/mkimport index e5fa723..b3c71fe 100755 --- a/scripts/mkimport +++ b/scripts/mkimport @@ -96,7 +96,6 @@ local prefixes = { --doc]]-- -local loader_merge_name = "luaotfload-package.lua" local loader_target_name = "fontloader-%s.lua" local loader_orig_dir = "/src/fontloader/" local loader_target_dir = "/build/" @@ -771,7 +770,6 @@ local build_paths = function (argv) local base_dir = orig_dir .. loader_orig_dir local loader_name = stringformat (loader_target_name, os.date ("%F")) local target_name = orig_dir .. loader_target_dir .. loader_name - local merge_name = base_dir .. loader_merge_name if #argv >= 2 then local fname = argv[2] @@ -781,7 +779,7 @@ local build_paths = function (argv) argv[2]) end base_dir = dir - merge_name = fname + target_name = fname end if #argv == 3 then @@ -899,7 +897,6 @@ local package = function (argv) --- check preconditions if not lfsisdir (paths.base_dir) then die ("directory %s does not exist", emphasis (paths.base_dir )) end - if not lfsisfile (paths.merge_name) then die ("missing merge file at %s", emphasis (paths.merge_name )) end if not fileiswritable (paths.target_name) then die ("cannot write to %s", emphasis (paths.target_name)) end ---- not lfschdir (paths.base_dir) then die ("failed to cd into %s", emphasis (paths.base_dir )) end |