diff options
author | Dave Young <dyoung@redhat.com> | 2015-09-02 09:24:12 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2015-09-02 11:22:01 +0900 |
commit | 97a07e2775efb06c5c49f954ce6a0fe32bddb398 (patch) | |
tree | d3697543ee56dcfa173989c468bc5bab924a3eb1 | |
parent | cb9a818ff2ac437e76512ec01c0eb22d0d7456b2 (diff) |
Drop release date from kexec-tools version output
kexec --version reports like below:
kexec-tools 2.0.7 released 05 February 2015
The date string is generated when one run bootstrap script, thus
it is more like a build date instead of release date.
Even for distribution like Fedora it will make more sense if it can
report something like "kexec-tools 2.0.7-1 released 05 February 2015"
In case building from git tree, the date cause more confusion.
So let's remove it from version string unless there is better idea
to resolve the issue.
Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | kexec/kexec.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index e365dd9..ddb5e2b 100644 --- a/configure.ac +++ b/configure.ac @@ -10,9 +10,6 @@ AC_CONFIG_HEADERS([include/config.h]) AC_LANG(C) AC_PROG_CC -AC_DEFINE_UNQUOTED(PACKAGE_DATE, "`date '+%d %B %Y'`", - [Define to the release date of this package]) - dnl -- Compilation platform configuration dnl -- the host specifices the host machine for the kexec binary, the diff --git a/kexec/kexec.c b/kexec/kexec.c index 8ce6885..b9f1816 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -897,7 +897,7 @@ static int my_load_jump_back_helper(unsigned long kexec_flags, void *entry) static void version(void) { - printf(PACKAGE_STRING " released " PACKAGE_DATE "\n"); + printf(PACKAGE_STRING "\n"); } void usage(void) |