aboutsummaryrefslogtreecommitdiffhomepage
path: root/build_win.bat
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2019-09-12 23:18:52 -0500
committerCalvin Rose <calsrose@gmail.com>2019-09-12 23:18:52 -0500
commite6306ea1888ae69131322cf56de1fc61bbf4a7f8 (patch)
tree0f3846c41755826fdbc9c6824ceb5d2f391f3594 /build_win.bat
parentMerge pull request #167 from ato/patch-1 (diff)
Add script for removing <CR> on windows.
This caused bad stuff to be generated on windows, specifically the amalg file. We cause totally strip <CR> from files on windows using this script.
Diffstat (limited to 'build_win.bat')
-rw-r--r--build_win.bat2
1 files changed, 2 insertions, 0 deletions
diff --git a/build_win.bat b/build_win.bat
index 2cc7746c..f2ddb738 100644
--- a/build_win.bat
+++ b/build_win.bat
@@ -98,6 +98,7 @@ for %%f in (src\core\*.c) do (
set "amalg_files=!amalg_files! %%f"
)
janet.exe tools\amalg.janet src\core\util.h src\core\state.h src\core\gc.h src\core\vector.h src\core\fiber.h src\core\regalloc.h src\core\compile.h src\core\emit.h src\core\symcache.h %amalg_files% build\core_image.c > build\janet.c
+janet.exe tools\removecr.janet build\janet.c
echo === Successfully built janet.exe for Windows ===
echo === Run 'build_win test' to run tests. ==
@@ -137,6 +138,7 @@ exit /b 0
:DIST
mkdir dist
janet.exe tools\gendoc.janet > dist\doc.html
+janet.exe tools\removecr.janet dist\doc.html
copy build\janet.c dist\janet.c
copy janet.exe dist\janet.exe