aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-02-08 02:49:42 -0800
committerGuy Harris <guy@alum.mit.edu>2010-02-08 02:49:42 -0800
commita6942e75968bb0915c598667bf4d3c0d17e728d9 (patch)
tree857e2ffd26b7a11d8a89d6d8bcfda1f5d8696ef6
parent916b450e310e472865fe1ff779ea21b74df8096a (diff)
Put date into version.h for Git versions, too.
-rw-r--r--Makefile.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 29228f1..4056d79 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -454,7 +454,13 @@ version.c: $(srcdir)/VERSION
#
version.h: $(srcdir)/VERSION
@rm -f $@
- sed -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/' $(srcdir)/VERSION > $@
+ if grep GIT ${srcdir}/VERSION >/dev/null; then \
+ read ver <${srcdir}/VERSION; \
+ echo $$ver | tr -d '\012'; \
+ date +_%Y_%m_%d; \
+ else \
+ cat ${srcdir}/VERSION; \
+ fi | sed -e 's/.*/static const char pcap_version_string[] = "libpcap version &";/' > $@
bpf_filter.c: $(srcdir)/bpf/net/bpf_filter.c
rm -f bpf_filter.c