diff options
author | Jim Blandy <jimb@redhat.com> | 1992-01-14 07:27:56 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1992-01-14 07:27:56 +0000 |
commit | 86a5659e6c48c4bd3213cbc626fb3ac6176c2793 (patch) | |
tree | 5b109f3b66f7abada494460dbf082f4afe134e93 /build-ins.in | |
parent | a33ef3ab6d2d8956da9fe82f9d80d620172755dd (diff) | |
download | emacs-86a5659e6c48c4bd3213cbc626fb3ac6176c2793.tar.gz |
Initial revision
Diffstat (limited to 'build-ins.in')
-rwxr-xr-x | build-ins.in | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/build-ins.in b/build-ins.in new file mode 100755 index 00000000000..fe09dabd0be --- /dev/null +++ b/build-ins.in @@ -0,0 +1,64 @@ +#!/bin/csh -fx +# +#Shell script for building and installing Emacs. + +# Where to install all of Emacs's data files - the lisp code, +# documentation tree, and the architecture-dependent and -independent +# libaries. The default definitions for the variables below are +# expressed in terms of this one, so you may not need to change them. +# set LIBROOT=/usr/local/lib/emacs-19.0 +set LIBROOT=/u/emacs + +# Emacs will search this path to find its elisp files. This should be +# a colon-separated list of directories. Strictly speaking, all the +# elisp files should go under DATADIR (below), since both elisp source +# and compiled elisp are completely portable, but it's traditional to +# give the lisp files their own subdirectory. +set LISPPATH=/u/emacs/lisp + +# Emacs will look here for its architecture-independent files (like +# the tutorial and the zippy database). +set DATADIR=/u/emacs/share-lib + +# Emacs will look here for its architecture-dependent files, like +# executables for its utilities. +set LIBDIR=/u/emacs/arch-lib + +# The locking directory, where the Emacs locking code keeps track of +# which files are currently being edited. +# set LOCKDIR=${LIBROOT}/lock +set LOCKDIR=/u/emacs/lock + +# This is where build-install should place the binaries people will +# want to run directly (like etags and Emacs itself). +set BINDIR=/usr/local/bin + +/bin/sed < src/paths.h-dist > src/paths.h \ +-e 's;/usr/local/emacs;'${LIBDIR}';g' \ +-e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'${LISPPATH}'";' \ +-e 's;\(#.*PATH_EXEC\).*$$;\1 "'${LIBDIR}'";' \ +-e 's;\(#.*PATH_DATA\).*$$;\1 "'${DATADIR}'";' \ +-e 's;\(#.*LOCK\).*$$;\1 "'${LOCKDIR}'/";' + +exit 1 + +(cd lib-src; make) || exit 1 +(cd src; make) || exit 1 + +if (`pwd` != `(cd ${LIBROOT}; pwd)`) then + mv `pwd` ${LIBROOT} + if ($status) then + mkdir ${LIBROOT} + echo mv `pwd` to ${LIBROOT} failed--using tar to copy. + tar cf - . | (cd ${LIBROOT}; umask 0; tar xf -) + if ($status) then + echo tar-copying `pwd` to ${LIBROOT} failed. + exit 1 + endif + endif +endif + +cp ${LIBROOT}/etc/{ctags,etags} ${BINDIR} +mv ${LIBROOT}/src/xemacs ${BINDIR}/emacs +rm ${LIBROOT}/src/temacs +chmod 777 ${BINDIR}/{ctags,etags,emacs} |