annotate build-ins.in @ 602:d2de231ee7f5

Don't duplicate most recent logs. Fix bug in dates after Feb 29 in leap year.
author Paul Eggert <eggert@twinsun.com>
date Wed, 01 Apr 1992 08:57:55 +0000
parents d02d6c2f7f80
children 63a8e7b3c547
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
1 #!/bin/sh -x
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 #
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3 #Shell script for building and installing Emacs.
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5 # Where to install all of Emacs's data files - the lisp code,
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 # documentation tree, and the architecture-dependent and -independent
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 # libaries. The default definitions for the variables below are
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 # expressed in terms of this one, so you may not need to change them.
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 # set LIBROOT=/usr/local/lib/emacs-19.0
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
10 LIBROOT=/gd/gnu/emacs
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 # Emacs will search this path to find its elisp files. This should be
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 # a colon-separated list of directories. Strictly speaking, all the
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 # elisp files should go under DATADIR (below), since both elisp source
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15 # and compiled elisp are completely portable, but it's traditional to
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 # give the lisp files their own subdirectory.
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
17 LISPPATH=/gd/gnu/emacs/local-lisp:/gd/gnu/emacs/lisp
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
19 # Emacs will look here for its architecture-independent files (like
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20 # the tutorial and the zippy database).
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
21 DATADIR=/gd/gnu/emacs/share-lib
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23 # Emacs will look here for its architecture-dependent files, like
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24 # executables for its utilities.
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
25 LIBDIR=/gd/gnu/emacs/arch-lib
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27 # The locking directory, where the Emacs locking code keeps track of
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28 # which files are currently being edited.
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29 # set LOCKDIR=${LIBROOT}/lock
596
d02d6c2f7f80 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 550
diff changeset
30 LOCKDIR=/gd/gnu/emacs/lock
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 # This is where build-install should place the binaries people will
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33 # want to run directly (like etags and Emacs itself).
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
34 BINDIR=/usr/local/bin
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36 /bin/sed < src/paths.h-dist > src/paths.h \
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
37 -e 's;\(#.*PATH_LOADSEARCH\).*$;\1 "'${LISPPATH}'";' \
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
38 -e 's;\(#.*PATH_EXEC\).*$;\1 "'${LIBDIR}'";' \
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
39 -e 's;\(#.*PATH_DATA\).*$;\1 "'${DATADIR}'";' \
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
40 -e 's;\(#.*LOCK\).*$;\1 "'${LOCKDIR}'/";'
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
41
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42 (cd lib-src; make) || exit 1
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43 (cd src; make) || exit 1
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
45 if [ `pwd` != `(cd ${LIBROOT}; pwd)` ]; then
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 mv `pwd` ${LIBROOT}
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
47 if [ $? != '0' ]; then
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48 mkdir ${LIBROOT}
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49 echo mv `pwd` to ${LIBROOT} failed--using tar to copy.
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50 tar cf - . | (cd ${LIBROOT}; umask 0; tar xf -)
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
51 if [ $? != '0' ]; then
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 echo tar-copying `pwd` to ${LIBROOT} failed.
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53 exit 1
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
54 fi
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
55 fi
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
56 fi
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
58 cp ${LIBROOT}/etc/[ce]tags ${BINDIR}
491
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 mv ${LIBROOT}/src/xemacs ${BINDIR}/emacs
77c38d1bc8a8 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60 rm ${LIBROOT}/src/temacs
522
bacdab90fa8b *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 491
diff changeset
61 chmod 777 ${BINDIR}/[ce]tags ${BINDIR}/emacs