aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorRomain Francoise2010-05-24 13:35:41 +0200
committerRomain Francoise2010-05-24 13:35:41 +0200
commitc17e9c60bea331e361600d9acb9f101e56df2eef (patch)
tree42c162def00683372ff8f0dd0a97e84eb89e6fad /make-dist
parent6ec0221e1232cd6060124bf4c2e59210a75b110e (diff)
downloademacs-c17e9c60bea331e361600d9acb9f101e56df2eef.tar.gz
emacs-c17e9c60bea331e361600d9acb9f101e56df2eef.zip
Adapt make-dist to new version location.
* make-dist: Look for version in src/emacs.c. Use lisp/subr.el rather than lisp/version.el for location check.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist10
1 files changed, 5 insertions, 5 deletions
diff --git a/make-dist b/make-dist
index 87d879d31c4..11969042db1 100755
--- a/make-dist
+++ b/make-dist
@@ -121,8 +121,8 @@ while [ $# -gt 0 ]; do
121done 121done
122 122
123### Make sure we're running in the right place. 123### Make sure we're running in the right place.
124if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/version.el ]; then 124if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/subr.el ]; then
125 echo "${progname}: Can't find \`src/lisp.h' and \`lisp/version.el'." >&2 125 echo "${progname}: Can't find \`src/lisp.h' and \`lisp/subr.el'." >&2
126 echo "${progname} must be run in the top directory of the Emacs" >&2 126 echo "${progname} must be run in the top directory of the Emacs" >&2
127 echo "distribution tree. cd to that directory and try again." >&2 127 echo "distribution tree. cd to that directory and try again." >&2
128 exit 1 128 exit 1
@@ -150,12 +150,12 @@ then
150fi 150fi
151 151
152### Find out which version of Emacs this is. 152### Find out which version of Emacs this is.
153shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \ 153shortversion=`grep 'char emacs_version' src/emacs.c \
154 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 154 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
155version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ 155version=`grep 'char emacs_version' src/emacs.c \
156 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 156 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
157if [ ! "${version}" ]; then 157if [ ! "${version}" ]; then
158 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'" >&2 158 echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2
159 exit 1 159 exit 1
160fi 160fi
161 161