Skip to content

Commit

Permalink
add install target to ant script -- handy for testing CompEvol/beast2…
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Jun 10, 2024
1 parent ff54ec2 commit f6690f4
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<!--
depends="build_jar_all_BeastFX_NoJUnitTest"
-->
<target name="package" depends="init"
<target name="package" depends="init,compile-all,compile-allBeastFX,dist_all_BEAST,dist_all_BeastFX"
description="release BEAST 2 package version of BeastFX">

<mkdir dir="${dist}" />
Expand Down Expand Up @@ -566,4 +566,33 @@
</target>



<condition property="isWindows"><os family="windows" /></condition>
<condition property="isLinux"><and><os family="unix"/><not><os family="mac"/></not></and></condition>
<condition property="isMac"><os family="mac" /></condition>

<target name="installLinux" depends="package" if="isLinux">
<mkdir dir="${user.home}/.beast/2.7/BEAST.base"/>
<unzip src="${distFX}/BEAST.base.package.v${version}.zip" dest="${user.home}/.beast/2.7/BEAST.base"/>
<mkdir dir="${user.home}/.beast/2.7/BEAST.app"/>
<unzip src="${distFX}/BEAST.app.package.v${version}.zip" dest="${user.home}/.beast/2.7/BEAST.app"/>
</target>

<target name="installMac" depends="package" if="isMac">
<mkdir dir="${user.home}/Library/Application Support/BEAST/2.7/BEAST.base"/>
<unzip src="${distFX}/BEAST.base.package.v${version}.zip" dest="${user.home}/Library/Application Support/BEAST/2.7/BEAST.base"/>
<mkdir dir="${user.home}/Library/Application Support/BEAST/2.7/BEAST.app"/>
<unzip src="${distFX}/BEAST.app.package.v${version}.zip" dest="${user.home}/Library/Application Support/BEAST/2.7/BEAST.app"/>
</target>

<target name="installWindows" depends="package" if="isWindows">
<mkdir dir="${user.home}/BEAST/2.7/BEAST.base"/>
<unzip src="${distFX}/BEAST.base.package.v${version}.zip" dest="${user.home}/BEAST/2.7/BEAST.base"/>
<mkdir dir="${user.home}/BEAST/2.7/BEAST.app"/>
<unzip src="${distFX}/BEAST.app.package.v${version}.zip" dest="${user.home}/BEAST/2.7/BEAST.app"/>
</target>

<target name="install" depends="installWindows,installMac,installLinux">
</target>

</project>

0 comments on commit f6690f4

Please sign in to comment.