diff options
author | Guido van Rossum <guido@python.org> | 1997-12-02 17:52:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-02 17:52:37 (GMT) |
commit | 6cedf82ac1080eaf72b6d2703b609071a120b3eb (patch) | |
tree | 41685ac54a9314e88634ba8ecfe77bea18f24ba3 | |
parent | 11fbef5f927dbe0d2898b7e15d055adddec1fd19 (diff) | |
download | cpython-6cedf82ac1080eaf72b6d2703b609071a120b3eb.zip cpython-6cedf82ac1080eaf72b6d2703b609071a120b3eb.tar.gz cpython-6cedf82ac1080eaf72b6d2703b609071a120b3eb.tar.bz2 |
Make modes for installed files and directories variables; change the
default for directories (not for files!) to be group writable.
-rw-r--r-- | Makefile.in | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/Makefile.in b/Makefile.in index f1e86ed..564dce2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -122,10 +122,17 @@ SHELL= /bin/sh # Use ``EXE=.exe'' for Unix emulations on DOS/Windows (e.g. GNUWIN32) EXE= +# Modes for directories, executables and data files created by the +# install process. Default to group-writable directories but +# user-only-writable for executables and data files. +DIRMODE= 775 +EXEMODE= 755 +FILEMODE= 644 + # Portable install script (configure doesn't always guess right) INSTALL= @srcdir@/install-sh -c -INSTALL_PROGRAM=${INSTALL} -m 755 -INSTALL_DATA= ${INSTALL} -m 644 +INSTALL_PROGRAM=${INSTALL} -m $(EXEMODE) +INSTALL_DATA= ${INSTALL} -m $(FILEMODE) # --with-PACKAGE options for configure script # e.g. --with-readline --with-svr5 --with-solaris --with-thread @@ -233,7 +240,7 @@ altbininstall: python if test ! -d $$i; then \ echo "Creating directory $$i"; \ mkdir $$i; \ - chmod 755 $$i; \ + chmod $(DIRMODE) $$i; \ else true; \ fi; \ done @@ -246,7 +253,7 @@ maninstall: if test ! -d $$i; then \ echo "Creating directory $$i"; \ mkdir $$i; \ - chmod 755 $$i; \ + chmod $(DIRMODE) $$i; \ else true; \ fi; \ done @@ -263,7 +270,7 @@ libinstall: python $(srcdir)/Lib/$(PLATDIR) if test ! -d $$i; then \ echo "Creating directory $$i"; \ mkdir $$i; \ - chmod 755 $$i; \ + chmod $(DIRMODE) $$i; \ else true; \ fi; \ done @@ -275,7 +282,7 @@ libinstall: python $(srcdir)/Lib/$(PLATDIR) if test ! -d $$b; then \ echo "Creating directory $$b"; \ mkdir $$b; \ - chmod 755 $$b; \ + chmod $(DIRMODE) $$b; \ else true; \ fi; \ done @@ -332,7 +339,7 @@ inclinstall: if test ! -d $$i; then \ echo "Creating directory $$i"; \ mkdir $$i; \ - chmod 755 $$i; \ + chmod $(DIRMODE) $$i; \ else true; \ fi; \ done @@ -352,7 +359,7 @@ libainstall: all if test ! -d $$i; then \ echo "Creating directory $$i"; \ mkdir $$i; \ - chmod 755 $$i; \ + chmod $(DIRMODE) $$i; \ else true; \ fi; \ done |