From c161b7d6fe142231346cc1844e6e27c0ab7718c1 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Fri, 16 Sep 2022 15:53:42 +0200 Subject: 2022-09-16 14:41:00 --- source/luametatex/build.sh | 72 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 source/luametatex/build.sh (limited to 'source/luametatex/build.sh') diff --git a/source/luametatex/build.sh b/source/luametatex/build.sh new file mode 100644 index 000000000..60e7d13d5 --- /dev/null +++ b/source/luametatex/build.sh @@ -0,0 +1,72 @@ +# The official designated locations are: +# +# luametatex[.exe] +# mtxrun[.exe] -> luametatex[.exe] +# mtxrun.lua (latest version) +# context.lua (latest version) + +if [ "$1" = "mingw-64" ] || [ "$1" = "mingw64" ] || [ "$1" = "mingw" ] || [ "$1" == "--mingw64" ] +then + + PLATFORM="win64" + SUFFIX=".exe" + mkdir -p build/mingw-64 + cd build/mingw-64 + cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=./cmake/mingw-64.cmake ../.. + +elif [ "$1" = "mingw-32" ] || [ "$1" = "mingw32" ] || [ "$1" == "--mingw32" ] +then + + PLATFORM="mswin" + SUFFIX=".exe" + mkdir -p build/mingw-32 + cd build/mingw-32 + cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=./cmake/mingw-32.cmake ../.. + +else + + PLATFORM="native" + SUFFIX=" " + mkdir -p build/native + cd build/native + cmake -G Ninja ../.. + +fi + +#~ make -j8 +cmake --build . --parallel 8 + +echo "" +echo "tex trees" +echo "" +echo "resources like public fonts : tex/texmf/...." +echo "the context macro package : tex/texmf-context/...." +echo "the luametatex binary : tex/texmf-$PLATFORM/bin/..." +echo "optional third party modules : tex/texmf-context/...." +echo "fonts installed by the user : tex/texmf-fonts/fonts/data/...." +echo "styles made by the user : tex/texmf-projects/tex/context/user/...." +echo "" +echo "binaries:" +echo "" +echo "tex/texmf-/bin/luametatex$SUFFIX : the compiled binary (some 2-3MB)" +echo "tex/texmf-/bin/mtxrun$SUFFIX : copy of or link to luametatex" +echo "tex/texmf-/bin/context$SUFFIX : copy of or link to luametatex" +echo "tex/texmf-/bin/mtxrun.lua : copy of tex/texmf-context/scripts/context/lua/mtxrun.lua" +echo "tex/texmf-/bin/context.lua : copy of tex/texmf-context/scripts/context/lua/context.lua" +echo "" +echo "commands:" +echo "" +echo "mtxrun --generate : create file database" +echo "mtxrun --script fonts --reload : create font database" +echo "mtxrun --autogenerate context ... : run tex file (e.g. from editor)" +echo "" -- cgit v1.2.3