diff options
Diffstat (limited to 'make-dist')
| -rwxr-xr-x | make-dist | 11 |
1 files changed, 6 insertions, 5 deletions
| @@ -121,8 +121,8 @@ while [ $# -gt 0 ]; do | |||
| 121 | done | 121 | done |
| 122 | 122 | ||
| 123 | ### Make sure we're running in the right place. | 123 | ### Make sure we're running in the right place. |
| 124 | if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/version.el ]; then | 124 | if [ ! -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 | |||
| 150 | fi | 150 | fi |
| 151 | 151 | ||
| 152 | ### Find out which version of Emacs this is. | 152 | ### Find out which version of Emacs this is. |
| 153 | shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \ | 153 | shortversion=`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/'` |
| 155 | version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ | 155 | version=`grep 'char emacs_version' src/emacs.c \ |
| 156 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 156 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
| 157 | if [ ! "${version}" ]; then | 157 | if [ ! "${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 |
| 160 | fi | 160 | fi |
| 161 | 161 | ||
| @@ -440,6 +440,7 @@ echo "Making links to \`src'" | |||
| 440 | ln [a-zA-Z]*.h ../${tempdir}/src | 440 | ln [a-zA-Z]*.h ../${tempdir}/src |
| 441 | ln [a-zA-Z]*.m ../${tempdir}/src | 441 | ln [a-zA-Z]*.m ../${tempdir}/src |
| 442 | ln [a-zA-Z]*.in ../${tempdir}/src | 442 | ln [a-zA-Z]*.in ../${tempdir}/src |
| 443 | ln [a-zA-Z]*.mk ../${tempdir}/src | ||
| 443 | ## If we ended up with a symlink, or if we did not get anything | 444 | ## If we ended up with a symlink, or if we did not get anything |
| 444 | ## due to a cross-device symlink, copy the file. | 445 | ## due to a cross-device symlink, copy the file. |
| 445 | for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in; do | 446 | for file in [a-zA-Z]*.[hcs] [a-zA-Z]*.in; do |