summaryrefslogtreecommitdiff
path: root/cpp/makedist.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/makedist.py')
-rwxr-xr-xcpp/makedist.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/makedist.py b/cpp/makedist.py
index 48f893e056e..27c38bc541d 100755
--- a/cpp/makedist.py
+++ b/cpp/makedist.py
@@ -379,8 +379,13 @@ if verbose:
quiet = "v"
else:
quiet = ""
-os.system("chmod -R u+rw,go+r . " + icever)
+os.system("chmod -R u+rw,go+r-w . " + icever)
+os.system("find " + icever + " \\( -name \"*.h\" -or -name \"*.cpp\" -or -name \"*.ice\" \\) -exec chmod a-x {} \\;")
+os.system("find " + icever + " \\( -name \"README*\" -or -name \"INSTALL*\" \\) -exec chmod a-x {} \\;")
+os.system("find " + icever + " \\( -name \"*.xml\" -or -name \"*.mc\" \\) -exec chmod a-x {} \\;")
+os.system("find " + icever + " \\( -name \"Makefile\" -or -name \"*.dsp\" \\) -exec chmod a-x {} \\;")
os.system("find " + icever + " -type d -exec chmod a+x {} \\;")
+os.system("find " + icever + " -perm +111 -exec chmod a+x {} \\;")
os.system("tar c" + quiet + "f " + icever + ".tar " + icever)
os.system("gzip -9 " + icever + ".tar")
if verbose: