Skip to content

Commit

Permalink
Added hg revision tag into executable to allow tracking of versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
geekman committed Jan 2, 2011
1 parent 2e2f3ba commit cb4eab4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Makefile for mdns-repeater

HGVERSION=$(shell hg id -i)

CFLAGS=-Wall

ifdef DEBUG
Expand All @@ -9,6 +11,8 @@ CFLAGS+= -Os
LDFLAGS+= -s
endif

CFLAGS+= -DHGVERSION="\"${HGVERSION}\""

.PHONY: all clean

all: mdns-repeater
Expand Down
2 changes: 1 addition & 1 deletion mdns-repeater.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cb4eab4

Please sign in to comment.