diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2020-08-01 10:26:41 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2020-08-03 10:02:47 -0700 |
commit | fbef655568ee931a82ad463a6f46f01ce3fb27aa (patch) | |
tree | 6425f1ebc5d0ac403f7efcc38e3d87d7de6fb8d5 /genl | |
parent | cb17e0cc578162a33d62afcbf9df471183a6b0c7 (diff) | |
download | iproute2-fbef655568ee931a82ad463a6f46f01ce3fb27aa.tar.gz |
replace SNAPSHOT with auto-generated version string
Replace the iproute2 snapshot with a version string which is
autogenerated as part of the build process using git describe.
This will also allow seeing if the version of the command
is built from the same sources is as upstream.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'genl')
-rw-r--r-- | genl/genl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/genl/genl.c b/genl/genl.c index aba3c13a..6557e6bc 100644 --- a/genl/genl.c +++ b/genl/genl.c @@ -22,7 +22,7 @@ #include <errno.h> #include <linux/netlink.h> #include <linux/rtnetlink.h> /* until we put our own header */ -#include "SNAPSHOT.h" +#include "version.h" #include "utils.h" #include "genl_utils.h" @@ -118,7 +118,7 @@ int main(int argc, char **argv) } else if (matches(argv[1], "-raw") == 0) { ++show_raw; } else if (matches(argv[1], "-Version") == 0) { - printf("genl utility, iproute2-ss%s\n", SNAPSHOT); + printf("genl utility, iproute2-%s\n", version); exit(0); } else if (matches(argv[1], "-help") == 0) { usage(); |