diff options
| author | Richard M. Stallman | 1995-12-31 19:21:18 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-12-31 19:21:18 +0000 |
| commit | d7e2eff6c179c5f3eb5bc942e0bd11f851a0a6e3 (patch) | |
| tree | 7625e8469042cdbb1b5dc2f72c3cde2d271b1ff0 | |
| parent | e5220563c85767b5a310d85f5c5c7a3c6a07309d (diff) | |
| download | emacs-d7e2eff6c179c5f3eb5bc942e0bd11f851a0a6e3.tar.gz emacs-d7e2eff6c179c5f3eb5bc942e0bd11f851a0a6e3.zip | |
(install-arch-indep): Give all files read permission.
| -rw-r--r-- | Makefile.in | 79 |
1 files changed, 44 insertions, 35 deletions
diff --git a/Makefile.in b/Makefile.in index 66e0bed9cec..a79d8dffb11 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -297,8 +297,7 @@ lwlib/Makefile: lwlib/Makefile.in config.status | |||
| 297 | install: ${SUBDIR} install-arch-dep install-arch-indep blessmail | 297 | install: ${SUBDIR} install-arch-dep install-arch-indep blessmail |
| 298 | @true | 298 | @true |
| 299 | 299 | ||
| 300 | ### Note that we copy the DOC-* files from the build etc directory | 300 | ### Install the executables that were compiled specifically for this machine. |
| 301 | ### as well as lots of things from ${srcdir}/etc. | ||
| 302 | install-arch-dep: mkdir | 301 | install-arch-dep: mkdir |
| 303 | (cd lib-src; \ | 302 | (cd lib-src; \ |
| 304 | $(MAKE) install $(MFLAGS) prefix=${prefix} \ | 303 | $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
| @@ -309,47 +308,50 @@ install-arch-dep: mkdir | |||
| 309 | rm -f ${bindir}/$(EMACS) | 308 | rm -f ${bindir}/$(EMACS) |
| 310 | -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) | 309 | -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) |
| 311 | 310 | ||
| 312 | ### Note that we copy the DOC-* files from the build etc directory | 311 | ### Install the files that are machine-independent. |
| 313 | ### as well as lots of things from ${srcdir}/etc. | 312 | ### Most of them come straight from the distribution; |
| 313 | ### the exception is the DOC-* files, which are copied | ||
| 314 | ### from the build directory. | ||
| 315 | |||
| 314 | ### Note that we copy DOC* and then delete DOC | 316 | ### Note that we copy DOC* and then delete DOC |
| 315 | ### as a workaround for a bug in tar on Ultrix 4.2. | 317 | ### as a workaround for a bug in tar on Ultrix 4.2. |
| 316 | |||
| 317 | install-arch-indep: mkdir | 318 | install-arch-indep: mkdir |
| 318 | -set ${COPYDESTS} ; \ | 319 | -set ${COPYDESTS} ; \ |
| 319 | for dir in ${COPYDIR} ; do \ | 320 | for dir in ${COPYDIR} ; do \ |
| 320 | if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \ | 321 | if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \ |
| 321 | rm -rf $$1 ; \ | 322 | rm -rf $$1 ; \ |
| 322 | fi ; \ | 323 | fi ; \ |
| 323 | shift ; \ | 324 | shift ; \ |
| 324 | done | 325 | done |
| 325 | -set ${COPYDESTS} ; \ | 326 | -set ${COPYDESTS} ; \ |
| 326 | mkdir ${COPYDESTS} ; \ | 327 | mkdir ${COPYDESTS} ; \ |
| 327 | chmod ugo+rx ${COPYDESTS} ; \ | 328 | chmod ugo+rx ${COPYDESTS} ; \ |
| 328 | for dir in ${COPYDIR} ; do \ | 329 | for dir in ${COPYDIR} ; do \ |
| 329 | dest=$$1 ; shift ; \ | 330 | dest=$$1 ; shift ; \ |
| 330 | [ -d $${dir} ] \ | 331 | [ -d $${dir} ] \ |
| 331 | && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ | 332 | && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ |
| 332 | && (echo "Copying $${dir} to $${dest}..." ; \ | 333 | && (echo "Copying $${dir} to $${dest}..." ; \ |
| 333 | (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xvf - ); \ | 334 | (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xvf - ); \ |
| 334 | for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ | 335 | for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
| 335 | rm -rf $${subdir}/RCS ; \ | 336 | rm -rf $${subdir}/RCS ; \ |
| 336 | rm -rf $${subdir}/CVS ; \ | 337 | rm -rf $${subdir}/CVS ; \ |
| 337 | rm -f $${subdir}/\#* ; \ | 338 | rm -f $${subdir}/\#* ; \ |
| 338 | rm -f $${subdir}/.\#* ; \ | 339 | rm -f $${subdir}/.\#* ; \ |
| 339 | rm -f $${subdir}/*~ ; \ | 340 | rm -f $${subdir}/*~ ; \ |
| 340 | rm -f $${subdir}/*.orig ; \ | 341 | rm -f $${subdir}/*.orig ; \ |
| 341 | rm -f $${subdir}/[mM]akefile* ; \ | 342 | rm -f $${subdir}/[mM]akefile* ; \ |
| 342 | rm -f $${subdir}/ChangeLog* ; \ | 343 | rm -f $${subdir}/ChangeLog* ; \ |
| 343 | rm -f $${subdir}/dired.todo ; \ | 344 | rm -f $${subdir}/dired.todo ; \ |
| 344 | done) ; \ | 345 | done) ; \ |
| 345 | done | 346 | done |
| 346 | -rm -f ${lispdir}/subdirs.el | 347 | -rm -f ${lispdir}/subdirs.el |
| 347 | $(srcdir)/update-subdirs ${lispdir} | 348 | $(srcdir)/update-subdirs ${lispdir} |
| 349 | chmod -R a+r ${COPYDESTS} | ||
| 348 | if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ | 350 | if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ |
| 349 | then \ | 351 | then \ |
| 350 | echo "Copying etc/DOC-* to ${docdir} ..." ; \ | 352 | echo "Copying etc/DOC-* to ${docdir} ..." ; \ |
| 351 | (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \ | 353 | (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \ |
| 352 | (cd $(docdir); rm DOC) \ | 354 | (cd $(docdir); chmod a+r DOC*; rm DOC) \ |
| 353 | else true; fi | 355 | else true; fi |
| 354 | thisdir=`/bin/pwd`; \ | 356 | thisdir=`/bin/pwd`; \ |
| 355 | if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ | 357 | if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ |
| @@ -361,12 +363,19 @@ install-arch-indep: mkdir | |||
| 361 | fi; \ | 363 | fi; \ |
| 362 | cd ${srcdir}/info ; \ | 364 | cd ${srcdir}/info ; \ |
| 363 | (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \ | 365 | (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \ |
| 366 | (cd $${thisdir}; chmod a+r ${infodir}/dir); \ | ||
| 364 | for f in cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*; do \ | 367 | for f in cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*; do \ |
| 365 | (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f); \ | 368 | (cd $${thisdir}; \ |
| 369 | ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \ | ||
| 370 | chmod a+r ${infodir}/$$f); \ | ||
| 366 | done); \ | 371 | done); \ |
| 367 | else true; fi | 372 | else true; fi |
| 368 | thisdir=`/bin/pwd`; cd ${srcdir}/etc; for page in emacs etags ctags ; do \ | 373 | thisdir=`/bin/pwd`; \ |
| 369 | (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}); \ | 374 | cd ${srcdir}/etc; \ |
| 375 | for page in emacs etags ctags ; do \ | ||
| 376 | (cd $${thisdir}; \ | ||
| 377 | ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}; \ | ||
| 378 | chmod a+r ${man1dir}/$${page}${manext}); \ | ||
| 370 | done | 379 | done |
| 371 | 380 | ||
| 372 | ### Build all the directories we're going to install Emacs in. Since | 381 | ### Build all the directories we're going to install Emacs in. Since |