+ <target name="generatecoco">
+ <jacoco:merge destfile="merged.exec">
+ <fileset dir="." includes="*.exec"/>
+ </jacoco:merge>
+ <jacoco:report>
+ <executiondata>
+ <file file="merged.exec" />
+ </executiondata>
+
+ <structure name="CAcert gigi">
+ <group name="Server">
+ <classfiles>
+ <fileset dir="bin">
+ <include name="org/cacert/gigi/**"/>
+ </fileset>
+ </classfiles>
+ <sourcefiles encoding="UTF-8">
+ <fileset dir="src">
+ <include name="org/cacert/gigi/**"/>
+ </fileset>
+ </sourcefiles>
+ </group>
+ <group name="Testcases">
+ <classfiles>
+ <fileset dir="bintest">
+ <include name="org/cacert/gigi/**"/>
+ </fileset>
+ </classfiles>
+ <sourcefiles encoding="UTF-8">
+ <fileset dir="tests">
+ <include name="org/cacert/gigi/**"/>
+ </fileset>
+ </sourcefiles>
+ </group>
+ </structure>
+
+ <html destdir="cocoReport"/>
+
+ </jacoco:report>
+ </target>
+ <target name="install-native" depends="native">
+ <mkdir dir="${env.DESTDIR}/usr/lib/jni"/>
+ <copy file="natives/libsetuid.so" todir="${env.DESTDIR}/usr/lib/jni"/>
+ </target>
+ <target name="install" depends="install-common">
+ <mkdir dir="${env.DESTDIR}/usr/share/cacert-gigi/static" />
+ <copy todir="${env.DESTDIR}/usr/share/cacert-gigi/static">
+ <fileset dir="static" />
+ </copy>
+ <delete file="${env.DESTDIR}/usr/share/cacert-gigi/static/static/images/cacert4-test.png" />
+ <copy file="gigi.jar" tofile="${env.DESTDIR}/usr/share/java/gigi.jar"/>
+ </target>
+ <target name="install-testing" depends="install-common">
+ <mkdir dir="${env.DESTDIR}/usr/share/cacert-gigi/static" />
+ <copy todir="${env.DESTDIR}/usr/share/cacert-gigi/static">
+ <fileset dir="static" />
+ </copy>
+ <move file="${env.DESTDIR}/usr/share/cacert-gigi/static/static/images/cacert4-test.png" tofile="${env.DESTDIR}/usr/share/cacert-gigi/static/static/images/cacert4.png" />
+ <delete file="${env.DESTDIR}/usr/share/cacert-gigi/static/static/images/cacert4-test.png" />
+ <copy file="gigi-testing.jar" tofile="${env.DESTDIR}/usr/share/java/gigi.jar"/>
+ </target>
+
+ <target name="install-common" depends="pack">
+ <mkdir dir="${env.DESTDIR}/usr/share/java" />
+
+ <mkdir dir="${env.DESTDIR}/usr/bin"/>
+ <copy file="doc/scripts/gigi" tofile="${env.DESTDIR}/usr/bin/gigi"/>
+
+ <chmod file="${env.DESTDIR}/usr/bin/gigi" perm="+x"/>
+ <mkdir dir="${env.DESTDIR}/usr/share/dbconfig-common/data/${PACKAGE}/install/"/>
+ <copy file="doc/tableStructure.sql" tofile="${env.DESTDIR}/usr/share/dbconfig-common/data/${PACKAGE}/install/mysql.sql"/>
+
+ <mkdir dir="${env.DESTDIR}/var/lib/cacert-gigi/doc"/>
+ <exec executable="ln">
+ <arg value="-s"/>
+ <arg value="/usr/share/dbconfig-common/data/${PACKAGE}/install/mysql.sql"/>
+ <arg value="${env.DESTDIR}/var/lib/cacert-gigi/doc/tableStructure.sql"/>
+ </exec>
+ <mkdir dir="${env.DESTDIR}/var/lib/cacert-gigi/natives"/>
+ <delete failonerror="false" file="${env.DESTDIR}/var/lib/cacert-gigi/static"/>
+ <exec executable="ln">
+ <arg value="-s"/>
+ <arg value="/usr/share/cacert-gigi/static"/>
+ <arg value="${env.DESTDIR}/var/lib/cacert-gigi/static"/>
+ </exec>
+ <exec executable="ln">
+ <arg value="-s"/>
+ <arg value="/usr/lib/jni/libsetuid.so"/>
+ <arg value="${env.DESTDIR}/var/lib/cacert-gigi/natives/libsetuid.so"/>
+ </exec>
+
+ <mkdir dir="${env.DESTDIR}/etc/cacert/gigi"/>
+ <!--<copy todir="${env.DESTDIR}/DEBIAN">
+ <fileset dir="debian">
+ </fileset>
+ </copy>-->
+ </target>
+ <target name="update-effective-tlds">
+ <mkdir dir="bin/org/cacert/gigi/util"/>
+ <exec executable="wget" dir="bin/org/cacert/gigi/util">
+ <arg value="-N"/>
+ <arg value="-q"/>
+ <arg value="https://publicsuffix.org/list/effective_tld_names.dat"/>
+ </exec>
+ </target>