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 /rdma | |
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 'rdma')
-rw-r--r-- | rdma/rdma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rdma/rdma.c b/rdma/rdma.c index 22050555..d1957465 100644 --- a/rdma/rdma.c +++ b/rdma/rdma.c @@ -5,7 +5,7 @@ */ #include "rdma.h" -#include "SNAPSHOT.h" +#include "version.h" #include "color.h" static void help(char *name) @@ -131,8 +131,8 @@ int main(int argc, char **argv) long_options, NULL)) >= 0) { switch (opt) { case 'V': - printf("%s utility, iproute2-ss%s\n", - filename, SNAPSHOT); + printf("%s utility, iproute2-%s\n", + filename, version); return EXIT_SUCCESS; case 'p': pretty = 1; |