aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-10-31 03:19:56 +0000
committerGlenn Morris2007-10-31 03:19:56 +0000
commit9a56b44037a4048d7b424c8ed423521f4cdaca2b (patch)
treedcba2ba479624ba08025fb5de6b1ad80f390ecb3
parentfe1ada9b0871d2035cb8264ae0feed72d9e81ee7 (diff)
downloademacs-9a56b44037a4048d7b424c8ed423521f4cdaca2b.tar.gz
emacs-9a56b44037a4048d7b424c8ed423521f4cdaca2b.zip
(install-arch-indep): Fallback to $USER and `id -un' when changing
ownership of installed files.
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in26
-rw-r--r--admin/FOR-RELEASE3
3 files changed, 31 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8b421d9d837..4a010f1863d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12007-10-31 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (install-arch-indep): Fallback to $USER and `id -un'
4 when changing ownership of installed files.
5
12007-10-30 Glenn Morris <rgm@gnu.org> 62007-10-30 Glenn Morris <rgm@gnu.org>
2 7
3 * make-dist: Add new directory etc/gnus. 8 * make-dist: Add new directory etc/gnus.
diff --git a/Makefile.in b/Makefile.in
index 5f1c186efac..f0f710b4711 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -423,6 +423,12 @@ install-arch-dep: mkdir
423 423
424## Note that the Makefiles in the etc directory are potentially useful 424## Note that the Makefiles in the etc directory are potentially useful
425## in an installed Emacs, so should not be excluded. 425## in an installed Emacs, so should not be excluded.
426
427## installuser:
428## http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01672.html
429## Nuisance because i) it needs to be the user running install, so
430## configure can't set it; ii) can't (?) use the result of rule
431## commands to set make variables.
426install-arch-indep: mkdir info 432install-arch-indep: mkdir info
427 -set ${COPYDESTS} ; \ 433 -set ${COPYDESTS} ; \
428 unset CDPATH; \ 434 unset CDPATH; \
@@ -436,6 +442,10 @@ install-arch-indep: mkdir info
436 mkdir ${COPYDESTS} ; \ 442 mkdir ${COPYDESTS} ; \
437 chmod ugo+rx ${COPYDESTS} ; \ 443 chmod ugo+rx ${COPYDESTS} ; \
438 unset CDPATH; \ 444 unset CDPATH; \
445 for installuser in $${LOGNAME} $${USERNAME} $${USER} \
446 `id -un 2> /dev/null`; do \
447 [ -n "$${installuser}" ] && break ; \
448 done ; \
439 for dir in ${COPYDIR} ; do \ 449 for dir in ${COPYDIR} ; do \
440 dest=$$1 ; shift ; \ 450 dest=$$1 ; shift ; \
441 [ -d $${dir} ] \ 451 [ -d $${dir} ] \
@@ -444,7 +454,7 @@ install-arch-indep: mkdir info
444 (cd $${dir}; tar -chf - . ) \ 454 (cd $${dir}; tar -chf - . ) \
445 | (cd $${dest}; umask 022; \ 455 | (cd $${dest}; umask 022; \
446 tar -xvf - && cat > /dev/null) || exit 1; \ 456 tar -xvf - && cat > /dev/null) || exit 1; \
447 find $${dest} -exec chown $${LOGNAME:-$$USERNAME} {} ';' ;\ 457 find $${dest} -exec chown $${installuser} {} ';' ;\
448 for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \ 458 for subdir in `find $${dest} -type d ! -name RCS ! -name CVS -print` ; do \
449 chmod a+rx $${subdir} ; \ 459 chmod a+rx $${subdir} ; \
450 rm -rf $${subdir}/RCS ; \ 460 rm -rf $${subdir}/RCS ; \
@@ -492,7 +502,12 @@ install-arch-indep: mkdir info
492 echo "Copying etc/$${docfile} to $(DESTDIR)${docdir} ..." ; \ 502 echo "Copying etc/$${docfile} to $(DESTDIR)${docdir} ..." ; \
493 (cd ./etc; tar -chf - $${docfile}) \ 503 (cd ./etc; tar -chf - $${docfile}) \
494 |(cd $(DESTDIR)${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ 504 |(cd $(DESTDIR)${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
495 (cd $(DESTDIR)$(docdir); chown $${LOGNAME:-$$USERNAME} DOC*; chmod a+r DOC*; \ 505 (cd $(DESTDIR)$(docdir); \
506 for installuser in $${LOGNAME} $${USERNAME} $${USER} \
507 `id -un 2> /dev/null`; do \
508 [ -n "$${installuser}" ] && break ; \
509 done ; \
510 chown $${installuser} DOC*; chmod a+r DOC*; \
496 if test "`echo DOC-*`" != "DOC-*"; then rm -f DOC; fi); \ 511 if test "`echo DOC-*`" != "DOC-*"; then rm -f DOC; fi); \
497 else true; fi 512 else true; fi
498 -unset CDPATH; \ 513 -unset CDPATH; \
@@ -504,7 +519,12 @@ install-arch-indep: mkdir info
504 echo "Copying lisp/*.el and lisp/*.elc to $(DESTDIR)${lispdir} ..." ; \ 519 echo "Copying lisp/*.el and lisp/*.elc to $(DESTDIR)${lispdir} ..." ; \
505 (cd lisp; tar -chf - *.el *.elc) \ 520 (cd lisp; tar -chf - *.el *.elc) \
506 |(cd $(DESTDIR)${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ 521 |(cd $(DESTDIR)${lispdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
507 (cd $(DESTDIR)${lispdir}; find . -exec chown $${LOGNAME:-$$USERNAME} {} ';') ; \ 522 (cd $(DESTDIR)${lispdir}; \
523 for installuser in $${LOGNAME} $${USERNAME} $${USER} \
524 `id -un 2> /dev/null`; do \
525 [ -n "$${installuser}" ] && break ; \
526 done ; \
527 find . -exec chown $${installuser} {} ';') ; \
508 else true; fi 528 else true; fi
509 -unset CDPATH; \ 529 -unset CDPATH; \
510 if [ -n "${GZIP_PROG}" ]; \ 530 if [ -n "${GZIP_PROG}" ]; \
diff --git a/admin/FOR-RELEASE b/admin/FOR-RELEASE
index f92ea029353..41e10d23329 100644
--- a/admin/FOR-RELEASE
+++ b/admin/FOR-RELEASE
@@ -91,6 +91,9 @@ http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01753.html
91 91
92** sdl.web@gmail.com, 28 Oct: window-system in face definition 92** sdl.web@gmail.com, 28 Oct: window-system in face definition
93 93
94** add README files for etc/gnus, etc/images/smilies/medium,grayscale
95update etc/images README files with any new images
96
94* DOCUMENTATION 97* DOCUMENTATION
95 98
96** Check the Emacs Tutorial. 99** Check the Emacs Tutorial.