Collapse more clang version numbers down into fewer places.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81983 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/docs/tools/Makefile b/docs/tools/Makefile
index a1bbbcc..12696ef 100644
--- a/docs/tools/Makefile
+++ b/docs/tools/Makefile
@@ -21,6 +21,7 @@
 DST_HTML_DIR=html/
 DST_MAN_DIR=man/man1/
 DST_PS_DIR=ps/
+CLANG_VERSION := trunk
 
 # If we are in BUILD_FOR_WEBSITE mode, default to the all target.
 all:: html man ps
@@ -39,6 +40,8 @@
 LEVEL := ../../../..
 include $(LEVEL)/Makefile.common
 
+CLANG_VERSION := $(shell cat $(PROJ_SRC_DIR)/../../VER)
+
 SRC_DOC_DIR=$(PROJ_SRC_DIR)/
 DST_HTML_DIR=$(PROJ_OBJ_DIR)/
 DST_MAN_DIR=$(PROJ_OBJ_DIR)/
@@ -66,7 +69,7 @@
 	  --podpath=. --infile=$< --outfile=$@ --title=$*
 
 $(DST_MAN_DIR)%.1: %.pod $(DST_MAN_DIR)/.dir
-	pod2man --release "clang 1.1" --center="Clang Tools Documentation" $< $@
+	pod2man --release "clang $(CLANG_VERSION)" --center="Clang Tools Documentation" $< $@
 
 $(DST_PS_DIR)%.ps: $(DST_MAN_DIR)%.1 $(DST_PS_DIR)/.dir
 	groff -Tps -man $< > $@