changeset 43649:662351ad5213

(install-arch-indep): Use umask 022 for DOC* and lisp/. Run chown $${LOGNAME} on files installed by tar xvf.
author Richard M. Stallman <rms@gnu.org>
date Sun, 03 Mar 2002 13:08:14 +0000
parents cc5a0eac67cf
children 93a9551db080
files Makefile.in
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Sun Mar 03 12:00:58 2002 +0000
+++ b/Makefile.in	Sun Mar 03 13:08:14 2002 +0000
@@ -377,6 +377,7 @@
 	      (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 @@
 	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 @@
 	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`; \