2023-09-16 02:21:24 +00:00
|
|
|
@echo off
|
|
|
|
setlocal
|
|
|
|
|
|
|
|
set script_dir_backslash=%~dp0
|
|
|
|
set script_dir=%script_dir_backslash:~0,-1%
|
|
|
|
set build_dir=%script_dir%\Build
|
|
|
|
set code_dir=%script_dir%
|
|
|
|
|
2023-10-17 11:07:20 +00:00
|
|
|
REM Bootstrap a version
|
|
|
|
git show -s --date=format:%%Y-%%m-%%d --format=%%cd HEAD> feely_pona_version.txt
|
|
|
|
git rev-parse --short=8 HEAD>> feely_pona_version.txt
|
|
|
|
git rev-list --count HEAD>> feely_pona_version.txt
|
|
|
|
|
2023-10-12 11:20:29 +00:00
|
|
|
REM Bootstrap the build program
|
2023-10-17 01:29:57 +00:00
|
|
|
mkdir %build_dir% 2>nul
|
2023-09-16 02:21:24 +00:00
|
|
|
pushd %build_dir%
|
2023-10-12 11:20:29 +00:00
|
|
|
cl /nologo /Z7 /W4 %code_dir%\feely_pona_build.cpp || exit /B 1
|
|
|
|
copy feely_pona_build.exe %code_dir% 1>nul
|
|
|
|
popd
|
2023-10-10 12:00:35 +00:00
|
|
|
|
2023-10-12 11:20:29 +00:00
|
|
|
REM Run the build program
|
2023-10-15 09:23:14 +00:00
|
|
|
%code_dir%\feely_pona_build.exe %* || exit /B 1
|
2023-09-16 02:21:24 +00:00
|
|
|
|
|
|
|
popd
|
|
|
|
exit /B 1
|