Skip to content

Commit

Permalink
Bindings regen script updated.
Browse files Browse the repository at this point in the history
The Bindings.cpp / .h files are no longer stored in the git repo.
  • Loading branch information
madmaxoft committed Dec 21, 2013
1 parent 7565026 commit abd1ca4
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/Bindings/AllToLua.bat
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

0 comments on commit abd1ca4

Please sign in to comment.