forked from cuberite/cuberite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Bindings.cpp / .h files are no longer stored in the git repo.
- Loading branch information
Showing
1 changed file
with
6 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
|
||
:: AllToLua.bat | ||
|
||
:: This scripts updates the automatically-generates Lua bindings in Bindings.cpp / Bindings.h | ||
:: When called without any parameters, it will pause for a keypress at the end | ||
:: Call with any parameter to disable the wait (for buildserver use) | ||
|
||
|
||
|
||
|
||
|
||
:: If there was a Git conflict, resolve it by resetting to HEAD; we're regenerating the files from scratch anyway | ||
git checkout --ours Bindings.cpp | ||
git add -u Bindings.cpp | ||
git checkout --ours Bindings.h | ||
git add -u Bindings.h | ||
|
||
:: Regenerate the files: | ||
"tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg | ||
|
||
|
||
|
||
|
||
:: Regenerate the files: | ||
"tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg | ||
|
||
: Wait for keypress, if no param given: | ||
if %ALLTOLUA_WAIT%N == N pause | ||
|
||
|
||
|
||
|
||
if %ALLTOLUA_WAIT%N == N pause |