From 53ddecef5a51c72a47d4660b0c068d9a4ca26bfd Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 29 Nov 2020 19:10:47 +0000 Subject: [PATCH] add forgotten files git-svn-id: svn://kolibrios.org@8279 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/downloader/Tupfile.lua | 6 ++++++ programs/cmm/downloader/compile_en.bat | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 programs/cmm/downloader/Tupfile.lua create mode 100644 programs/cmm/downloader/compile_en.bat 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