diff --git a/programs/cmm/downloader/Tupfile.lua b/programs/cmm/downloader/Tupfile.lua new file mode 100644 index 0000000000..200aedd658 --- /dev/null +++ b/programs/cmm/downloader/Tupfile.lua @@ -0,0 +1,6 @@ +if tup.getconfig("NO_CMM") ~= "" then return end +if tup.getconfig("LANG") == "ru" +then C_LANG = "LANG_RUS" +else C_LANG = "LANG_ENG" -- this includes default case without config +end +tup.rule("dl.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "dl.com") diff --git a/programs/cmm/downloader/compile_en.bat b/programs/cmm/downloader/compile_en.bat new file mode 100644 index 0000000000..8ee66a9d61 --- /dev/null +++ b/programs/cmm/downloader/compile_en.bat @@ -0,0 +1,10 @@ +@del lang.h-- +@echo #define LANG_ENG 1 >lang.h-- + +@c-- dl.c +@del dl +@rename dl.com dl +@del warning.txt +@del lang.h-- + +if not exist dl ( @pause ) \ No newline at end of file