aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters2002-04-29 22:48:22 +0000
committerColin Walters2002-04-29 22:48:22 +0000
commit7451222f00d7707f296d4d4fd2bafdb3e73dc830 (patch)
treeada926b5a98af01cc8ddc276074f21f994837c19
parent0143af8fef56626374c182c3603dd44d28872078 (diff)
downloademacs-7451222f00d7707f296d4d4fd2bafdb3e73dc830.tar.gz
emacs-7451222f00d7707f296d4d4fd2bafdb3e73dc830.zip
(${archlibdir}): Don't conditionalize on
HAVE_SHARED_GAME_DIR. Instead, test at installation time whether or not we have access to the specified game user.
-rw-r--r--lib-src/Makefile.in21
1 files changed, 10 insertions, 11 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 6c20b857f64..9a2a1fc401b 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -291,17 +291,16 @@ ${archlibdir}: all
291 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \ 291 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file ${archlibdir}/$$file ; \
292 done ; \ 292 done ; \
293 fi 293 fi
294#ifdef HAVE_SHARED_GAME_DIR 294/* If the following commands fail, that is not a big deal.
295 chown ${gameuser} ${archlibdir}/update-game-score 295 update-game-score will detect at runtime that it is not setuid,
296 chmod u+s ${archlibdir}/update-game-score 296 and handle things accordingly. */
297 $(top_srcdir)/mkinstalldirs ${gamedir} 297 if test ${gamedir} != no && chown ${gameuser} ${archlibdir}/update-game-score && chmod u+s ${archlibdir}/update-game-score; then \
298 chown ${gameuser} ${gamedir} 298 $(top_srcdir)/mkinstalldirs ${gamedir}; \
299 chmod u=rwx,g=rwx,o=rx ${gamedir} 299 chown ${gameuser} ${gamedir}; \
300/* If you change these, be sure to change the variables in 300 chmod u=rwx,g=rwx,o=rx ${gamedir}; \
301 lisp/play/{tetris,snake}.el. */ 301 touch ${gamedir}/snake-scores; \
302 touch ${gamedir}/snake-scores 302 touch ${gamedir}/tetris-scores; \
303 touch ${gamedir}/tetris-scores 303 fi
304#endif
305 if [ `(cd ${archlibdir} && /bin/pwd)` \ 304 if [ `(cd ${archlibdir} && /bin/pwd)` \
306 != `(cd ${srcdir} && /bin/pwd)` ]; then \ 305 != `(cd ${srcdir} && /bin/pwd)` ]; then \
307 for file in ${SCRIPTS}; do \ 306 for file in ${SCRIPTS}; do \