# HG changeset patch # User Jim Blandy # Date 738105901 0 # Node ID d3f30c15d39f61ba0b8d9fa3fffedf903ef2826e # Parent 3124e6244d1a775167d624870053aabc77f54b93 * make-dist: Check that the manual reflects the same version of Emacs as stated in lisp/version.el. Edit that version number into the README file. diff -r 3124e6244d1a -r d3f30c15d39f make-dist --- a/make-dist Sat May 22 20:57:31 1993 +0000 +++ b/make-dist Sat May 22 21:25:01 1993 +0000 @@ -69,6 +69,13 @@ exit 1 fi +if grep -s "GNU Emacs version ${version}" ./man/emacs.texi > /dev/null; then + true +else + echo "You must update the version number in \`./man/emacs.texi'" + exit 1 +fi + ### Make sure the subdirectory is available. tempparent="make-dist.tmp.$$" if [ -d ${tempparent} ]; then @@ -105,6 +112,15 @@ ### Copy config.sub; it's a cross-filesystem symlink. cp config.sub ${tempdir} +echo "Updating version number in README." +(cd ${tempdir} + awk \ + '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 } + $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \ + version=${version} README > tmp.README + mv tmp.README README) + + echo "Creating subdirectories." # I think we're not going to distribute anything in external-lisp, so # I've removed it from this list.