From: Sven Panne Date: Sat, 2 Jul 2005 12:58:07 +0000 (+0000) Subject: Remove wrong "execute" bits when creating a distribution. This fixes X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=317b519d90eed52b67ca13cfccd53c1d8b96de5e;p=freeglut Remove wrong "execute" bits when creating a distribution. This fixes bug #961938 (Executable bit set on non exe files). git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@659 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/ChangeLog b/ChangeLog index 736dfca..3efc545 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1087,3 +1087,6 @@ autoconf than via cpp. (281) Some steps toward compilation under MinGW. Note that there are still linking troubles for the examples. + +(282) Remove wrong "execute" bits when creating a distribution. This +fixes bug #961938 (Executable bit set on non exe files). diff --git a/Makefile.am b/Makefile.am index 76c3a00..fb0050c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,5 +11,20 @@ EXTRA_DIST = \ freeglut_static.dsp \ freeglut_evc4.vcp freeglut_evc4.vcw +# Thanks to WinDoze, some files in CVS have the "execute" bit set when they +# shoudn't. We could fix this if we had direct access to the CVS repository, +# but we are not that lucky. Instead we fix this at distribution creation time. +dist-hook: + find $(distdir) -type f \( \ + -name "*.c" -o \ + -name "*.dsp" -o \ + -name "*.dsw" -o \ + -name "*.h" -o \ + -name "*.html" -o \ + -name "*.png" -o \ + -name "LISEZ_MOI" -o \ + -name "README*" \ + \) -exec chmod -x {} \; + libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck