summaryrefslogtreecommitdiffstats
path: root/etc/targets/global-tar.xml
diff options
context:
space:
mode:
Diffstat (limited to 'etc/targets/global-tar.xml')
-rw-r--r--etc/targets/global-tar.xml84
1 files changed, 84 insertions, 0 deletions
diff --git a/etc/targets/global-tar.xml b/etc/targets/global-tar.xml
new file mode 100644
index 0000000..1b053ae
--- /dev/null
+++ b/etc/targets/global-tar.xml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="global-tar" basedir=".">
+
+ <target name="global-tar" depends="global-jar,global-javadoc">
+ <mkdir dir="${global.dir.build.dist}" />
+ <mkdir dir="${global.dir.build.tar}/lib" />
+ <mkdir dir="${global.dir.build.tar}/bin" />
+ <mkdir dir="${global.dir.build.javadoc}" />
+
+ <copy todir="${global.dir.build.tar}/lib">
+ <fileset dir="${global.dir.lib}/log4j">
+ <include name="**/*.jar" />
+ </fileset>
+ <mapper type="flatten" />
+ </copy>
+
+ <copy todir="${global.dir.build.tar}">
+ <fileset dir="${global.dir.src.scripts}">
+ <include name="cpp.sh" />
+ </fileset>
+ <fileset dir="${global.dir.root}">
+ <include name="LICENSE" />
+ </fileset>
+ </copy>
+
+ <copy todir="${global.dir.build.tar}/docs/api">
+ <fileset dir="${global.dir.build.javadoc}" />
+ </copy>
+
+<!--
+ <copy todir="${global.dir.build.tar}/docs/examples">
+ <fileset
+ dir="${global.dir.build.java}/org/anarres/cpp/examples">
+ <include name="**" />
+ </fileset>
+ </copy>
+-->
+
+ <chmod perm="a+x">
+ <fileset dir="${global.dir.build.tar}/bin">
+ <include name="**/*.pl"/>
+ </fileset>
+ <fileset dir="${global.dir.build.tar}">
+ <include name="*.sh"/>
+ </fileset>
+ </chmod>
+
+ <!-- <runtarget target="global-inject" /> -->
+
+ <tar
+ destfile="${global.file.bintar}"
+ compression="gzip"
+ longfile="gnu">
+ <tarfileset
+ dir="${global.dir.build.tar}"
+ prefix="${global.name}-bin-${global.version}"
+ username="root" group="root"
+ uid="0" gid="0"
+ >
+ <include name="**" />
+ </tarfileset>
+ </tar>
+
+ <tar
+ destfile="${global.file.srctar}"
+ compression="gzip"
+ longfile="gnu">
+ <tarfileset
+ dir="${global.dir.root}"
+ prefix="${global.name}-src-${global.version}"
+ username="root" group="root"
+ uid="0" gid="0"
+ >
+ <include name="**" />
+ <exclude name="build/**" />
+ <exclude name="**/.*.swp" />
+ <exclude name="src/scripts/release.sh" />
+ </tarfileset>
+ </tar>
+
+ </target>
+
+</project>