Updated Timeline build file to copy mactime.pl only if on Unix.

This commit is contained in:
Jeff Wallace 2013-09-17 08:49:30 -04:00
parent 82a80778f5
commit 78b572acf1

View File

@ -6,6 +6,10 @@
<description>Builds, tests, and runs the project org.sleuthkit.autopsy.timeline.</description> <description>Builds, tests, and runs the project org.sleuthkit.autopsy.timeline.</description>
<import file="nbproject/build-impl.xml"/> <import file="nbproject/build-impl.xml"/>
<condition property="os.family.unix">
<os family="unix"/>
</condition>
<!-- Verify that the TSK_HOME env variable is set --> <!-- Verify that the TSK_HOME env variable is set -->
<target name="findTSK"> <target name="findTSK">
<property environment="env"/> <property environment="env"/>
@ -16,7 +20,7 @@
<echo> TSK_HOME: ${env.TSK_HOME}</echo> <echo> TSK_HOME: ${env.TSK_HOME}</echo>
</target> </target>
<target name="getMacTime" depends="findTSK"> <target name="getMacTime" depends="findTSK" if="os.family.unix">
<property environment="env"/> <property environment="env"/>
<copy file="${env.TSK_HOME}/tools/timeline/mactime" tofile="${basedir}/release/mactime/mactime.pl"/> <copy file="${env.TSK_HOME}/tools/timeline/mactime" tofile="${basedir}/release/mactime/mactime.pl"/>
</target> </target>