gecko-dev/grendel/distro.xml

69 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="Grendel-distro" default="default" basedir=".">
<target name="clean-distro" depends="-init-distro">
<delete dir="${distro.base}"/>
</target>
<target name="-init-distro" depends="-init">
<property name="distro.base" value="${base.dep}/distro"/>
<property name="distro.src" value="${base}/dist_src"/>
<property name="distro.macosx.dir" value="${distro.base}/Grendel.app"/>
<property name="distro.macosx.dir.cont" value="${distro.macosx.dir}/Contents"/>
<property name="distro.macosx.dir.res" value="${distro.macosx.dir.cont}/Resources"/>
<property name="distro.macosx.dir.bin" value="${distro.macosx.dir.cont}/MacOS"/>
<property name="distro.win.dir" value="${distro.base}/win"/>
<property name="distro.linux.dir" value="${distro.base}/linux"/>
</target>
<target name="make-win" depends="-init-distro,build">
<mkdir dir="${distro.win.dir}"/>
<copy todir="${distro.win.dir}">
<fileset dir="${dist.frag.base}"/>
<fileset dir="${distro.src}">
<include name="grendel.exe"/>
<include name="grendel.bat"/>
</fileset>
</copy>
</target>
<target name="make-linux" depends="-init-distro,build">
<mkdir dir="${distro.linux.dir}"/>
<copy todir="${distro.linux.dir}">
<fileset dir="${dist.frag.base}"/>
<fileset dir="${distro.src}">
<include name="grendel.sh"/>
</fileset>
</copy>
<chmod perm="+x">
<fileset dir="${distro.linux.dir}">
<include name="*.sh"/>
</fileset>
</chmod>
</target>
<target name="make-mac" depends="-init-distro,build">
<mkdir dir="${distro.macosx.dir.bin}"/>
<copy todir="${distro.macosx.dir.cont}">
<fileset dir="${distro.src}">
<include name="Info.plist"/>
</fileset>
</copy>
<copy todir="${distro.macosx.dir.bin}">
<fileset dir="${dist.frag.base}"/>
<fileset dir="${distro.src}">
<include name="grendel.sh"/>
</fileset>
</copy>
<chmod perm="+x">
<fileset dir="${distro.macosx.dir.bin}">
<include name="*.sh"/>
</fileset>
</chmod>
</target>
</project>