build-install 384 B

12345678910111213141516171819202122
  1. #!/bin/csh -fx
  2. #
  3. #Shell script for building and installing Emacs.
  4. set EMACS=/usr/local/emacs
  5. set BIN=/usr/local/bin
  6. (cd etc; make) || exit 1
  7. (cd src; make) || exit 1
  8. if mv `pwd` $EMACS;then
  9. else
  10. mkdir $EMACS
  11. tar cf - . | (cd $EMACS; tar xfp -)
  12. rm -rf *
  13. fi
  14. cp $EMACS/etc/{ctags,etags} $BIN
  15. mv $EMACS/src/xemacs $BIN/emacs
  16. rm $EMACS/src/temacs
  17. chmod 777 $BIN/{ctags,etags,emacs}