Fixes script permissions, see http://gwt-code-reviews.appspot.com/89805.
Review by: scottb
Issue: 4718
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6564 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/distro-source/build.xml b/distro-source/build.xml
index 9edb2e8..d43e797 100755
--- a/distro-source/build.xml
+++ b/distro-source/build.xml
@@ -31,7 +31,7 @@
<!-- raw files -->
<zipfileset dir="${dist.resources}" prefix="${project.distname}" />
- <zipfileset dir="src" prefix="${project.distname}" />
+ <zipfileset filemode="755" dir="src" prefix="${project.distname}" />
<!-- doc -->
<zipfileset dir="${gwt.build.out}" prefix="${project.distname}">
@@ -58,5 +58,12 @@
-->
<mkdir dir="${gwt.build.staging}" />
<unzip src="${project.dist}" dest="${gwt.build.staging}" />
+ <!-- cute. zipinfo says the zip has good perms, unzip gets it right, but
+ ant <unzip> leaves the perms as non-executable... go figure. -->
+ <chmod perm="uga+rx">
+ <fileset dir="${gwt.build.staging}/gwt-${gwt.version}">
+ <patternset refid="chmod.executables"/>
+ </fileset>
+ </chmod>
</target>
</project>