diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-06-20 08:56:22 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-06-20 08:57:25 -0700 |
commit | b6af27927c2f06c5a091fbc1b04e819a70e0e2a2 (patch) | |
tree | 3e227d83e43b2e94e1dad66590a2fd83b21f4871 /lib-src/emacsclient.c | |
parent | de4e1bddb1c4823af4d04f0bff5b4a0217e9701d (diff) | |
download | emacs-b6af27927c2f06c5a091fbc1b04e819a70e0e2a2.tar.gz emacs-b6af27927c2f06c5a091fbc1b04e819a70e0e2a2.tar.bz2 emacs-b6af27927c2f06c5a091fbc1b04e819a70e0e2a2.zip |
Simplify lib-src version printing
* lib-src/Makefile.in (etags_cflags): Remove.
All uses replaced by a simple ‘-o $@’.
(ebrowse${EXEEXT}, emacsclient${EXEEXT}, emacsclientw${EXEEXT}):
Omit -DVERSION= option.
* lib-src/ebrowse.c (VERSION):
* lib-src/emacsclient.c (VERSION):
* lib-src/etags.c (EMACS_NAME, VERSION): Remove.
All uses replaced by PACKAGE_NAME and PACKAGE_VERSION.
* lib-src/ebrowse.c (version):
* lib-src/etags.c (print_version):
Use fputs to output the version info, since that’s fputs_unlocked.
* lib-src/etags.c (PROGRAM_NAME): New macro.
(print_version): Use it.
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r-- | lib-src/emacsclient.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index fd56007b156..4da532b42de 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -84,10 +84,6 @@ char *w32_getenv (const char *); #include <min-max.h> #include <unlocked-io.h> -#ifndef VERSION -#define VERSION "unspecified" -#endif - /* Work around GCC bug 88251. */ #if GNUC_PREREQ (7, 0, 0) # pragma GCC diagnostic ignored "-Wformat-truncation=2" @@ -546,7 +542,7 @@ decode_options (int argc, char **argv) break; case 'V': - message (false, "emacsclient %s\n", VERSION); + message (false, "emacsclient %s\n", PACKAGE_VERSION); exit (EXIT_SUCCESS); break; |