Mercurial > emacs
changeset 110952:495ef3733d20
* make-dist: Replace grep with sed when determining $version.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Tue, 12 Oct 2010 01:05:28 -0700 |
parents | 85fe6b298326 |
children | 799f9d1f3ac8 d86e0c3de741 b3f9490f0b7f |
files | make-dist |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/make-dist Tue Oct 12 01:01:11 2010 -0700 +++ b/make-dist Tue Oct 12 01:05:28 2010 -0700 @@ -153,8 +153,7 @@ fi ### Find out which version of Emacs this is. -version=`grep 'char emacs_version' src/emacs.c \ - | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` +version=`sed -n '/char emacs_version/ s/^[^"]*"\([^"]*\)".*$/\1/p' src/emacs.c` if [ ! "${version}" ]; then echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2 exit 1