home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / GnuSource / emacs-15.0.3 / build-install next >
Text File  |  1990-07-19  |  665b  |  30 lines

  1. #!/bin/csh -fx
  2. #
  3. #Shell script for building and installing Emacs.
  4.  
  5. set EMACS=/usr/local/emacs
  6. set BIN=/usr/local/bin
  7.  
  8. /bin/sed "s;/usr/local/emacs;$EMACS;" < src/paths.h-dist > src/paths.h
  9.  
  10. (cd etc; make) || exit 1
  11. (cd src; make) || exit 1
  12.  
  13. if (`pwd` != `(cd $EMACS; pwd)`) then
  14.   mv `pwd` $EMACS
  15.   if ($status) then
  16.     mkdir $EMACS
  17.     echo mv `pwd` to $EMACS failed--using tar to copy.
  18.     tar cf - . | (cd $EMACS; umask 0; tar xf -)
  19.     if ($status) then
  20.       echo tar-copying `pwd` to $EMACS failed.
  21.       exit 1
  22.     endif
  23.   endif
  24. endif
  25.  
  26. cp $EMACS/etc/{ctags,etags} $BIN
  27. mv $EMACS/src/xemacs $BIN/emacs
  28. rm $EMACS/src/temacs
  29. chmod 777 $BIN/{ctags,etags,emacs}
  30.