mirror of
https://github.com/SWG-Source/swg-main.git
synced 2026-01-16 20:04:18 -05:00
Added "update_swg" ant target
new ant target will update all submodules (with exception to changed log files) and then compile all files (where needed).
This commit is contained in:
15
build.xml
15
build.xml
@@ -525,5 +525,20 @@
|
||||
</fileset>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="git_update_main" description="Checkout the swg-main branch" >
|
||||
<git-pull dir="${basedir}" branch="${swg_main_branch}"/>
|
||||
</target>
|
||||
|
||||
<target name="git_update_submods_to_latest_commit" description="Updates all submodules to the latest remote repository commit">
|
||||
<exec executable="git" dir="${basedir}">
|
||||
<arg value="submodule"/>
|
||||
<arg value="foreach"/>
|
||||
<arg line="'(git checkout master; git pull)&'"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="update_swg" description="Updates the entire codebase with latest from the remote repositories and recompiles" depends="git_update_main,git_update_submods_to_latest_commit,compile">
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user