Basic support for a "make version" target to declare the source version

This is katmagic's idea.  See issue 4400.
This commit is contained in:
Nick Mathewson
2011-11-24 23:53:18 -05:00
parent eaa3a379f0
commit 916aa8022d
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -70,3 +70,10 @@ check-logs:
./contrib/checkLogs.pl \
src/*/*.[ch] | sort -n
version:
@echo "Tor @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
+4
View File
@@ -0,0 +1,4 @@
o Minor features (build):
- Running "make version" now displays the version of Tor that
we're about to build. Idea from katmagic; resolves issue 4400.