diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | mdns-repeater.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,7 @@ # Makefile for mdns-repeater +HGVERSION=$(shell hg id -i) + CFLAGS=-Wall ifdef DEBUG @@ -9,6 +11,8 @@ CFLAGS+= -Os LDFLAGS+= -s endif +CFLAGS+= -DHGVERSION="\"${HGVERSION}\"" + .PHONY: all clean all: mdns-repeater diff --git a/mdns-repeater.c b/mdns-repeater.c index 5b5165b..05aa002 100644 --- a/mdns-repeater.c +++ b/mdns-repeater.c @@ -243,7 +243,7 @@ static void daemonize() { } static void show_help(const char *progname) { - fprintf(stderr, "mDNS repeater\n"); + fprintf(stderr, "mDNS repeater (rev %s)\n", HGVERSION); fprintf(stderr, "usage: %s [ -f ] <ifdev> ...\n", progname); fprintf(stderr, "\n" "<ifdev> specifies an interface like \"eth0\"\n" |