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:
Cekis
2019-09-11 14:24:14 -07:00
committed by GitHub
parent b2633953dd
commit 2d33680e01

View File

@@ -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)&amp;'"/>
</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>