strip .jar down to only the things we actually want in it
authorBdale Garbee <bdale@gag.com>
Sat, 31 Jul 2010 16:49:02 +0000 (10:49 -0600)
committerBdale Garbee <bdale@gag.com>
Sat, 31 Jul 2010 16:49:02 +0000 (10:49 -0600)
build.xml

index 284a86ae9d626af762e7a51d11286d37ed33813f..7d728af8b2339bf5a8b6887308d76f2cef5086f7 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1005,7 +1005,7 @@ jsapi.exe from the lib directory.
 
     <fileset id="binaries"
              dir="."
-             includes="lib/*.jar,bin/*.jar,mbrola/*.jar"
+             includes="lib/*.jar,mbrola/*.jar"
              excludes="lib/jsapi.jar" />
 
     <fileset id="jsapi_sh"
@@ -1051,6 +1051,18 @@ jsapi.exe from the lib directory.
              excludes="**/*.jar,**/tests/**" />
     </target>
 
+    <!-- debian .. builds only what's needed for Debian packaging -->
+    <target name="debian" depends="all,javadoc">
+        <mkdir dir="${deploy_dir}/freetts-${version}" />
+        <copy todir="${deploy_dir}/freetts-${version}" includeEmptyDirs="false">
+            <fileset refid="binaries" />
+       </copy>
+        <jar destfile="${deploy_dir}/freetts-${version}.jar"
+             basedir="${deploy_dir}"
+             filesonly="true"
+             compress="true"
+       />
+    </target>
 
     <!-- freetts-bin -->
     <target name="deploy_bin" depends="deploy_init">