1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 07:50:27 +00:00

build_win.bat: Parse out smv of janet/version.

This commit is contained in:
Calvin Rose 2019-12-19 13:25:45 -05:00
parent 3492ed6d88
commit 933f4b9111

View File

@ -157,7 +157,7 @@ copy auxbin\jpm dist\jpm
copy tools\jpm.bat dist\jpm.bat
@rem Create installer
janet.exe -e "(print janet/version)" > build\version.txt
janet.exe -e "(print ((peg/match '(* :d+ `.` :d+ `.` :d+) janet/version) 0))" > build\version.txt
janet.exe -e "(print (= (os/arch) :x64))" > build\64bit.txt
set /p JANET_VERSION= < build\version.txt
set /p SIXTYFOUR= < build\64bit.txt