diff options
| author | Glenn Morris | 2010-10-12 01:05:28 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-12 01:05:28 -0700 |
| commit | 3868ea09219560d0f417243c746ed52c80e7b38a (patch) | |
| tree | 48b93a26712fc8f4df994175ae990bac297107c8 | |
| parent | 37ea9179e5a37f1ee5f43ea8a6b30aa68b975c1f (diff) | |
| download | emacs-3868ea09219560d0f417243c746ed52c80e7b38a.tar.gz emacs-3868ea09219560d0f417243c746ed52c80e7b38a.zip | |
* make-dist: Replace grep with sed when determining $version.
| -rwxr-xr-x | make-dist | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -153,8 +153,7 @@ then | |||
| 153 | fi | 153 | fi |
| 154 | 154 | ||
| 155 | ### Find out which version of Emacs this is. | 155 | ### Find out which version of Emacs this is. |
| 156 | version=`grep 'char emacs_version' src/emacs.c \ | 156 | version=`sed -n '/char emacs_version/ s/^[^"]*"\([^"]*\)".*$/\1/p' src/emacs.c` |
| 157 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | ||
| 158 | if [ ! "${version}" ]; then | 157 | if [ ! "${version}" ]; then |
| 159 | echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2 | 158 | echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2 |
| 160 | exit 1 | 159 | exit 1 |