diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-23 11:03:56 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-01-24 00:36:42 +0100 |
commit | 8854e46a50a0272578599d2fcd8d1fb363e19c38 (patch) | |
tree | cc2eb4055cd19d176b5e4669357906055b1ccba6 /6pack | |
parent | 47349482ee7b737c3cd2a8a1acb18fc3d9b95b0a (diff) |
Add a git suffix to the version number used by all programs.
This uses a setlocalversion script derived from the kernel's
scripts/setlocalversion.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to '6pack')
-rw-r--r-- | 6pack/m6pack.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/6pack/m6pack.c b/6pack/m6pack.c index 5b63801..6703639 100644 --- a/6pack/m6pack.c +++ b/6pack/m6pack.c @@ -53,6 +53,7 @@ #include <netax25/daemon.h> #include <config.h> +#include <scm-version.h> typedef unsigned char __u8; typedef enum {data, command} frame_t; @@ -387,7 +388,7 @@ static void report(struct iface *tty, struct iface **pty, int numptys) long t; time(&t); - syslog(LOG_INFO, "version %s.", VERSION); + syslog(LOG_INFO, "version %s.", FULL_VER); syslog(LOG_INFO, "Status report at %s", ctime(&t)); syslog(LOG_INFO, "ttyinterface is %s (fd=%d)", tty->name, tty->fd); for (i = 0; i < numptys; i++) @@ -439,7 +440,7 @@ int main(int argc, char *argv[]) } break; case 'v': - printf("m6pack: %s\n", VERSION); + printf("m6pack: %s\n", FULL_VER); return 1; case ':': case '?': |