[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit d8ef5b5cb200e633db146511033535d178b63659
Author: George Kadianakis <desnacked@xxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits