From: Stephen Hemminger Date: Fri, 21 Dec 2007 17:53:45 +0000 (-0800) Subject: snapshot target X-Git-Tag: v2.6.24-rc6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=235ac6a41d9d0439cce4eca8acdd31cac28605fc;p=thirdparty%2Fiproute2.git snapshot target Add Makefile target to create snapshot file. Signed-off-by: Stephen Hemminger --- diff --git a/Makefile b/Makefile index 6c976dd99..de04176dc 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,10 @@ install: all install -m 0755 -d $(DESTDIR)$(MANDIR)/man3 install -m 0644 $(shell find man/man3 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man3 +snapshot: + echo "static const char SNAPSHOT[] = \""`date +%y%m%d`"\";" \ + > include/SNAPSHOT.h + clean: rm -f cscope.* @for i in $(SUBDIRS) doc; \ diff --git a/include/SNAPSHOT.h b/include/SNAPSHOT.h index dde2804de..cdeb2067d 100644 --- a/include/SNAPSHOT.h +++ b/include/SNAPSHOT.h @@ -1 +1 @@ -static char SNAPSHOT[] = "071016"; +static const char SNAPSHOT[] = "071221";