added regex task to the build-zip target

This commit is contained in:
rishwanth1995 2018-03-08 15:49:16 -05:00
parent 8215e5f7fa
commit 00b59cb904
4 changed files with 7 additions and 8 deletions

View File

@ -6,7 +6,7 @@
<description>Builds, tests, and runs the project org.sleuthkit.autopsy.core</description> <description>Builds, tests, and runs the project org.sleuthkit.autopsy.core</description>
<import file="nbproject/build-impl.xml"/> <import file="nbproject/build-impl.xml"/>
<import file="../BootstrapIvy.xml"/> <import file="../BootstrapIvy.xml"/>
<import file="../TSK_VERSION.xml"/> <import file="../TSKVersion.xml"/>
<property name="thirdparty.dir" value="${basedir}/../thirdparty" /> <property name="thirdparty.dir" value="${basedir}/../thirdparty" />
@ -18,8 +18,7 @@
<fileset dir="{basedir}/../../InternalPythonModules"/> <fileset dir="{basedir}/../../InternalPythonModules"/>
</copy> </copy>
</target> </target>
<replaceregexp file="${basedir}/../unix_setup.sh" match="TSK_VERSION=(.*)" replace="TSK_VERSION=${TSK_VERSION}" byline="true"/>
<target name="get-thirdparty-dependencies" description="get third-party dependencies"> <target name="get-thirdparty-dependencies" description="get third-party dependencies">
<!--Copy openCV dependencies to release--> <!--Copy openCV dependencies to release-->
<copy todir="${modules.dir}" > <copy todir="${modules.dir}" >

View File

@ -6,7 +6,7 @@
<description>Builds the module suite Autopsy 4.</description> <description>Builds the module suite Autopsy 4.</description>
<import file="nbproject/build-impl.xml"/> <import file="nbproject/build-impl.xml"/>
<import file="${basedir}/TSK_VERSION.xml"/> <import file="${basedir}/TSKVersion.xml"/>
<!-- IMPORTANT: nbproject/platform.properties has a netbeans-plat-version property that MUST be kept in sync (manually) --> <!-- IMPORTANT: nbproject/platform.properties has a netbeans-plat-version property that MUST be kept in sync (manually) -->
<property name="netbeans-plat-version" value="8.2" /> <property name="netbeans-plat-version" value="8.2" />
<property name="nbplatform.active.dir" value="${basedir}/netbeans-plat/${netbeans-plat-version}" /> <property name="nbplatform.active.dir" value="${basedir}/netbeans-plat/${netbeans-plat-version}" />
@ -90,6 +90,7 @@
<if> <if>
<equals arg1="${os.family}" arg2="unix"/> <equals arg1="${os.family}" arg2="unix"/>
<then> <then>
<replaceregexp file="${basedir}/unix_setup.sh" match="TSK_VERSION=(.*)" replace="TSK_VERSION=${TSK_VERSION}" byline="true"/>
<copy file="${basedir}/unix_setup.sh" tofile="${zip-tmp}/${app.name}/unix_setup.sh"/> <copy file="${basedir}/unix_setup.sh" tofile="${zip-tmp}/${app.name}/unix_setup.sh"/>
</then> </then>
</if> </if>

View File

@ -23,10 +23,10 @@ if [[ -f "$sleuthkit_jar_filepath" ]]; then
echo "Successfully removed $ext_jar_filepath" echo "Successfully removed $ext_jar_filepath"
cp $sleuthkit_jar_filepath $ext_jar_filepath cp $sleuthkit_jar_filepath $ext_jar_filepath
if [ "$?" -eq 0 ]; then # checking copy operation was successful if [ "$?" -eq 0 ]; then # checking copy operation was successful
echo "Successfully copied $sleuthkit_jar_filepath" echo "Successfully copied $sleuthkit_jar_filepath"
else else
echo "exiting..." echo "exiting..."
exit 1 exit 1
fi fi
fi fi
else else
@ -35,4 +35,3 @@ else
fi fi
echo "Autopsy is now configured. You can execute bin/autopsy to start it" echo "Autopsy is now configured. You can execute bin/autopsy to start it"