AllToLua now resets the git status for the files.
This should auto-fix merge conflicts when they occur on the Bindings.cpp / Bindings.h files. http://forum.mc-server.org/showthread.php?tid=1200&pid=9315#pid9315
This commit is contained in:
parent
edb299db09
commit
13c5a7864e
@ -1,3 +1,25 @@
|
|||||||
|
|
||||||
|
:: AllToLua.bat
|
||||||
|
|
||||||
|
:: This scripts updates the automatically-generates Lua bindings in Bindings.cpp / Bindings.h
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
:: If there was a Git conflict, resolve it by resetting to HEAD; we're regenerating the files from scratch anyway
|
||||||
|
git checkout -- Bindings.cpp
|
||||||
|
git checkout -- Bindings.h
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
:: Regenerate the files:
|
||||||
"tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
|
"tolua++.exe" -L virtual_method_hooks.lua -o Bindings.cpp -H Bindings.h AllToLua.pkg
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if %ALLTOLUA_WAIT%N == N pause
|
if %ALLTOLUA_WAIT%N == N pause
|
||||||
|
Loading…
Reference in New Issue
Block a user