mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user