#!/bin/sh MAKEINFO=gmakeinfo export MAKEINFO mode="unknown" case x"$1" in xa*) mode=all ;; xi*) mode=install ;; xj*) mode=justinstall ;; xcont*) mode=continue ;; xc*) mode=configure ;; xr*) mode=rerun ;; esac if [ "$mode" = "unknown" ]; then echo "Usage: $0 { all | install | justinstall | configure | rerun }" echo "configure means just run the configure script" echo "all means make clean, run configure, run make" echo "install means make install, too" echo "justinstall means omit the all part" exit 2 fi if [ "$mode" = "all" -o "$mode" = "install" ]; then echo '***' echo make distclean echo '***' make distclean #autoheader || exit 3 echo '***' echo autoconf echo '***' autoconf || exit 3 #( cd lispref ; autoconf ) || exit 3 fi case "$mode" in install|continue|all) echo '***' echo ./configure echo '***' ./configure --with-x \ --with-x-libraries=/usr/X11R6/lib \ --with-x-includes=/usr/X11R6/include \ --with-xpm --with-jpeg \ --with-tiff --with-gif --with-png \ --prefix=$HOME/sw/emacs-21.0 \ || exit 4 ;; rerun) echo '***' echo ./configure echo '***' ./configure --with-x \ --with-x-libraries=/usr/X11R6/lib \ --with-x-includes=/usr/X11R6/include \ --without-xpm --without-jpeg \ --without-tiff --without-gif --without-png \ --prefix=$HOME/sw/emacs-21.0 \ || exit 4 echo '***' echo make echo '***' make || exit 5 install -m 755 src/emacs $HOME/sw/emacs-21.0/bin/emacs.small ;; esac if [ "$mode" = "all" -o "$mode" = "install" ]; then echo '***' echo make bootstrap echo '***' make MAKEINFO=$MAKEINFO bootstrap || exit 5 #( cd lispref ; make elisp ) || exit 5 #( cd lispref ; make ) || exit 5 fi if [ "$mode" = "continue" ]; then echo '***' echo make all echo '***' make MAKEINFO=$MAKEINFO all || exit 5 #( cd lispref ; make elisp ) || exit 5 #( cd lispref ; make ) || exit 5 fi if [ "$mode" = "install" -o "$mode" = "justinstall" ]; then rm -rf $HOME/sw/emacs-21.0.SAV mv $HOME/sw/emacs-21.0 $HOME/sw/emacs-21.0.SAV #(cd lispref ; make install ) || exit 6 echo '***' echo make install echo '***' make MAKEINFO=$MAKEINFO install || exit 6 oldpwd=`pwd` cd $HOME/sw/emacs-21.0/share/emacs || exit 7 mv site-lisp .hidden.site-lisp ln -s /usr/sw/emacs/21.2/share/emacs/site-lisp ln -s /usr/sw/emacs/21.2/share/emacs/site-info cd $HOME/sw/emacs-21.0/bin ln -s /usr/sw/emacs/21.2/bin/starttls ln -s /usr/sw/emacs/21.2/bin/ra-index ln -s /usr/sw/emacs/21.2/bin/ra-retrieve cd $oldpwd #( cd lispref ; make install ) || exit 7 echo '***' echo make tags echo '***' make tags || exit 8 echo '***' echo gnuserv echo '***' (cd ../misc/gnuserv-3.12.4 ; make install) || exit 9 fi