[comp.sources.bugs] MH 6.7 Updates - part 01/14

mh@beanie.ICS.UCI.EDU (John Romine) (04/14/90)

These are patches for MH 6.6 to bring it up to the current release MH
6.7.  If you can FTP, you should instead retrieve the current release
(from ics.uci.edu [128.195.1.1] in pub/mh).  See the announcement in
comp.mail.mh for all the details.  A document descibing the changes
from MH 6.6 can also be found in comp.mail.mh.

There are fourteen parts to these patches; you *must* have all the
parts to compile MH.  It will not work if you try to compile an
intermediate version.

This is part 01/14.

Save this file, extract the script below and execute it as:

	/bin/sh MH.6.6.0.sh

This will prepare your system for the upcoming patches.  Each of those
should be applied with "patch -p" from the top of your MH source tree:

	cd mh-6/
	patch -p < MH.6.6.n

If you have modified your source tree, you'll have to merge your local
changes in after you apply these patches to the original sources.

/JLR
: This is a shar archive.  Extract with sh, not csh.
: This archive ends with exit, so do not worry about trailing junk.
echo 'Extracting MH.6.6.0.sh'
sed 's/^X//' > MH.6.6.0.sh << '+ END-OF-FILE MH.6.6.0.sh'
X: '@(#)$Id: MH.6.6.0.sh,v 1.5 90/04/08 13:47:44 sources Exp $'
X
Xif [ ! -d uip ]; then
X    echo "Sorry, this script must be run from the mh-6 top-level directory"
X    exit 1
Xfi
X
Xcat <<EOF
X
XThis script is the first part of the update from MH 6.6 to MH 6.7.
XYou must have an unmodified mh-6.6 source tree to guarantee these
Xupdates will have no errors.
X
XThis script will create some directories, rename some files which will
Xbe installed with the subsequent patches, and remove some files which
Xare unused in this release.  After this script completes, your MH
Xdistribution will be at Patchlevel:
X
X	MH.6.6 patch.0
X
XDo you want to backup the files which will be removed, into a tar file?
XEOF
Xecho 'Enter "y" to backup the files, or press RETURN to continue:'
Xread A
Xcase x$A in
X  xy*)
X    FILES=""
X    for d in bboards mh4 mh5 multifarious realwork trusted tutorial
X    do
X	for f in article.tex dcustom.tex sfwmac.tex trademark.tex diss.sty
X	do
X	    FILES="${FILES} papers/$d/$f"
X	done
X    done
X    for f in version.c version.local version.major version.minor version.sh
X    do
X	FILES="${FILES} uip/$f"
X    done
X    echo "Creating backup.tar"
X    tar cvf backup.tar ${FILES}
X  ;;
X  *) ;;
Xesac
X
X
Xif [ ! -f Patchlevel ]; then
X: This is a shar archive.  Extract with sh, not csh.
X: This archive ends with exit, so do not worry about trailing junk.
Xecho 'Extracting Patchlevel'
Xsed 's/^X//' > Patchlevel << '+ END-OF-FILE Patchlevel'
XXMH.6.6 patch.0
X+ END-OF-FILE Patchlevel
Xchmod 'u=rw,g=r,o=r' 'Patchlevel'
Xecho '	-rw-r--r--  1 sources        15 Apr  6 13:54 Patchlevel        (as sent)'
Xecho -n '	'
X/bin/ls -l Patchlevel
Xfi
X
Xecho "Checking Patchlevel"
Xif grep -s '^MH.6.6 patch.0$' Patchlevel; then
X    echo "Good, you're at Patchlevel `cat Patchlevel`."
Xelse
X    echo "Oops! You're at Patchlevel `cat Patchlevel`.
XAborting"
X    exit 1
Xfi
X
Xif [ ! -d papers/doclib ]; then
X    echo "Making papers/doclib/"
X    mkdir papers/doclib
Xfi
Xif [ ! -d papers/mh6.7 ]; then
X    echo "Making papers/mh6.7/"
X    mkdir papers/mh6.7
Xfi
X
Xecho "Moving TeX library files"
Xfor f in article.tex dcustom.tex diss.sty trademark.tex
Xdo
X    if [ -f papers/trusted/$f ]; then
X	rm -f papers/doclib/$f
X	echo cp papers/trusted/$f papers/doclib/$f
X	cp papers/trusted/$f papers/doclib/$f
X	ls -l papers/doclib/$f
X    fi
Xdone
X
Xecho "Renaming files"
Xfor f in READ-ME conf/doc/mh-format.rf h/fmtcompile.h \
X	 sbr/m_seq.c zotnet/tws/lexstring.c uip/sortm.c
Xdo
X    if [ -f ${f} ]; then
X	rm -f ${f}.old
X	echo mv ${f} ${f}.old
X	mv ${f} ${f}.old
X	ls -l ${f}.old
X    fi
Xdone
X
Xecho "Removing old TeX library files"
Xfor d in bboards mh4 mh5 multifarious realwork trusted tutorial
Xdo
X    for f in article.tex dcustom.tex sfwmac.tex trademark.tex diss.sty
X    do
X	echo "rm -f papers/$d/$f"
X	rm -f papers/$d/$f
X    done
Xdone
X
Xecho "Removing old uip/version files"
Xfor f in version.c version.local version.major version.minor version.sh
Xdo
X    echo "rm -f uip/$f"
X    rm -f uip/$f
Xdone
X
X
Xcat <<EOF
XDone.
X
XYou should now apply each of the patches in numerical order.  Be sure
Xyou are at the mh top-level directory, and execute patch as:
X
X	patch -p < MH.6.6.n
X
XEOF
Xexit 0
+ END-OF-FILE MH.6.6.0.sh
chmod 'u=r,g=r,o=r' 'MH.6.6.0.sh'
echo '	-r--r--r--  1 mh           3120 Apr 13 13:53 MH.6.6.0.sh        (as sent)'
echo -n '	'
/bin/ls -l MH.6.6.0.sh
exit 0