Commit | Line | Data |
---|---|---|
cdb8fe7b C |
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} |