BSD 4_4 release
[unix-history] / usr / src / contrib / emacs-18.57 / build-install-dist
CommitLineData
cdb8fe7b
C
1#!/bin/csh -fx
2#
3#Shell script for building and installing Emacs.
4
5set EMACS=/usr/local/emacs
6set 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
13if (`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
24endif
25
26cp $EMACS/etc/{ctags,etags} $BIN
27mv $EMACS/src/xemacs $BIN/emacs
28rm $EMACS/src/temacs
29chmod 777 $BIN/{ctags,etags,emacs}