diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-03-03 13:08:14 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-03-03 13:08:14 +0000 |
commit | 7eb7c54447d17dfd72981ade45ccf68a401b3f8e (patch) | |
tree | ff6ac98d539acb254fa8b1f0e1d17cd4ad2b0d37 /Makefile.in | |
parent | bd7887c62b1a693d7273df26e572f34bbd7cf2a8 (diff) | |
download | emacs-7eb7c54447d17dfd72981ade45ccf68a401b3f8e.tar.gz |
(install-arch-indep): Use umask 022 for DOC* and lisp/.
Run chown $${LOGNAME} on files installed by tar xvf.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index cdeb42af2c1..f40277410b8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -377,6 +377,7 @@ install-arch-indep: mkdir info (cd $${dir}; tar -chf - . ) \ | (cd $${dest}; umask 022; \ tar -xvf - && cat > /dev/null) || exit 1; \ + find $${dest} -exec chown $$LOGNAME {} ';' ;\ for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \ chmod a+rx $${subdir} ; \ rm -rf $${subdir}/RCS ; \ @@ -414,8 +415,8 @@ install-arch-indep: mkdir info then \ echo "Copying etc/DOC-* to ${docdir} ..." ; \ (cd ./etc; tar -chf - DOC*) \ - |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null) || exit 1; \ - (cd $(docdir); chmod a+r DOC*; rm DOC); \ + |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ + (cd $(docdir); chown $${LOGNAME} DOC*; chmod a+r DOC*; rm DOC); \ else true; fi -unset CDPATH; \ if [ -r ./lisp ] \ @@ -425,7 +426,8 @@ install-arch-indep: mkdir info then \ echo "Copying lisp/*.el and lisp/*.elc to ${lispdir} ..." ; \ (cd lisp; tar -chf - *.el *.elc) \ - |(cd ${lispdir}; umask 0; tar -xvf - && cat > /dev/null) || exit 1; \ + |(cd ${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ + (cd ${lispdir}; find . -exec chown $${LOGNAME} {} ';') ; \ else true; fi -unset CDPATH; \ thisdir=`/bin/pwd`; \ |