comparison make-dist @ 2959:d3f30c15d39f

* 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.
author Jim Blandy <jimb@redhat.com>
date Sat, 22 May 1993 21:25:01 +0000
parents 9a270937e98c
children fe78246d77fb
comparison
equal deleted inserted replaced
2958:3124e6244d1a 2959:d3f30c15d39f
64 ### Find out which version of Emacs this is. 64 ### Find out which version of Emacs this is.
65 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ 65 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \
66 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'` 66 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`
67 if [ ! "${version}" ]; then 67 if [ ! "${version}" ]; then
68 echo "${progname}: can't find current emacs version in \`./lisp/version.el'." >&2 68 echo "${progname}: can't find current emacs version in \`./lisp/version.el'." >&2
69 exit 1
70 fi
71
72 if grep -s "GNU Emacs version ${version}" ./man/emacs.texi > /dev/null; then
73 true
74 else
75 echo "You must update the version number in \`./man/emacs.texi'"
69 exit 1 76 exit 1
70 fi 77 fi
71 78
72 ### Make sure the subdirectory is available. 79 ### Make sure the subdirectory is available.
73 tempparent="make-dist.tmp.$$" 80 tempparent="make-dist.tmp.$$"
102 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} 109 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir}
103 ln ChangeLog Makefile.in build-install.in configure configure.in ${tempdir} 110 ln ChangeLog Makefile.in build-install.in configure configure.in ${tempdir}
104 ln make-dist ${tempdir} 111 ln make-dist ${tempdir}
105 ### Copy config.sub; it's a cross-filesystem symlink. 112 ### Copy config.sub; it's a cross-filesystem symlink.
106 cp config.sub ${tempdir} 113 cp config.sub ${tempdir}
114
115 echo "Updating version number in README."
116 (cd ${tempdir}
117 awk \
118 '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 }
119 $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \
120 version=${version} README > tmp.README
121 mv tmp.README README)
122
107 123
108 echo "Creating subdirectories." 124 echo "Creating subdirectories."
109 # I think we're not going to distribute anything in external-lisp, so 125 # I think we're not going to distribute anything in external-lisp, so
110 # I've removed it from this list. 126 # I've removed it from this list.
111 for subdir in lisp lisp/term local-lisp \ 127 for subdir in lisp lisp/term local-lisp \