summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-05-22 21:25:01 +0000
committerJim Blandy <jimb@redhat.com>1993-05-22 21:25:01 +0000
commit9aca5f5f2cd094bb615e7ff33382b2306a356ffe (patch)
treed15d8ab6d9e6d2e52cd356460d79968c94c43493 /make-dist
parent2c5e64f60b150dd74ea975288b9ee982a2564847 (diff)
downloademacs-9aca5f5f2cd094bb615e7ff33382b2306a356ffe.tar.gz
* 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.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist16
1 files changed, 16 insertions, 0 deletions
diff --git a/make-dist b/make-dist
index cf5070f9c7b..d1b59c98d2e 100755
--- a/make-dist
+++ b/make-dist
@@ -69,6 +69,13 @@ if [ ! "${version}" ]; then
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 @@ ln make-dist ${tempdir}
### 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.