[tor-commits] [obfsproxy/master] Implement 'make-version'.

asn at torproject.org asn at torproject.org
Mon Mar 19 20:00:09 UTC 2012


commit d8ef5b5cb200e633db146511033535d178b63659
Author: George Kadianakis <desnacked at riseup.net>
Date:   Wed Feb 22 13:59:40 2012 -0800

    Implement 'make-version'.
---
 Makefile.am |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index d39b18c..f7c9c11 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,3 @@
-
 ACLOCAL_AMFLAGS = -I m4
 WARNINGS = -Wall -Wwrite-strings -Werror
 AM_CPPFLAGS = -I. -I$(srcdir)/src
@@ -93,3 +92,10 @@ tester.py: src/test/tester.py.in Makefile
 endif
 
 man_MANS = doc/obfsproxy.1
+
+version:
+	@echo "obfsproxy @VERSION@"
+	@if test -d "$(top_srcdir)/.git" && test -x "`which git 2>&1;true`"; then \
+	   echo -n "git: " ;\
+	   (cd "$(top_srcdir)" && git rev-parse --short=16 HEAD); \
+	fi





More information about the tor-commits mailing list