]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed executable permission for shellscripts in tar.gz archives
authorChristian Geisert <chrisg@apache.org>
Tue, 10 Dec 2002 15:01:38 +0000 (15:01 +0000)
committerChristian Geisert <chrisg@apache.org>
Tue, 10 Dec 2002 15:01:38 +0000 (15:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195760 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index c177e00cf9bcc4834ae72bac2a5e6e22c9466475..bfa1de0b5732ef530e25395b28301a5d73e80274 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -700,13 +700,17 @@ Sometimes ant gives out this warnings, but the build is finished without any pro
     <chmod file="${dist.bin.result.dir}/fop.sh" perm="ugo+rx" />
       
     <zip zipfile="${name}-${version}-bin.zip" basedir="${dist.bin.dir}" includes="**"/>
-    <tar tarfile="${name}-${version}-bin.tar" basedir="${dist.bin.dir}" includes="**"/>
-    <gzip zipfile="${name}-${version}-bin.tar.gz" src="${name}-${version}-bin.tar" />
-    <delete file="${name}-${version}-bin.tar"/>
 
+    <tar destfile="${name}-${version}-bin.tar.gz" compression="gzip">
+      <tarfileset dir="${dist.bin.dir}" mode="755">
+        <include name="**/*.sh"/>
+      </tarfileset>
+      <tarfileset dir="${dist.bin.dir}">
+        <exclude name="**/*.sh"/>
+      </tarfileset>
+    </tar>
   </target>
 
-
   <target name="dist-src" depends="package, docs">
     <echo message="Building the source distribution files (zip,tar)"/>
     <mkdir dir="${dist.src.result.dir}"/>
@@ -721,9 +725,15 @@ Sometimes ant gives out this warnings, but the build is finished without any pro
     <chmod file="${dist.src.result.dir}/docs/examples/runtests.sh" perm="ugo+rx" />
 
     <zip zipfile="${name}-${version}-src.zip" basedir="${dist.src.dir}" includes="**"/>
-    <tar tarfile="${name}-${version}-src.tar" basedir="${dist.src.dir}" includes="**"/>
-    <gzip zipfile="${name}-${version}-src.tar.gz" src="${name}-${version}-src.tar" />
-    <delete file="${name}-${version}-src.tar"/>
+
+    <tar destfile="${name}-${version}-src.tar.gz" compression="gzip">
+      <tarfileset dir="${dist.src.dir}" mode="755">
+        <include name="**/*.sh"/>
+      </tarfileset>
+      <tarfileset dir="${dist.src.dir}">
+        <exclude name="**/*.sh"/>
+      </tarfileset>
+    </tar>
 
   </target>