Changes in directory llvm/docs:

Makefile updated: 1.12 -> 1.13
---
Log message:

Get the version number for the LLVM from the autoconf/configure.ac file
when building the documentation for the web site.


---
Diffs of the changes:  (+9 -2)

 Makefile |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)


Index: llvm/docs/Makefile
diff -u llvm/docs/Makefile:1.12 llvm/docs/Makefile:1.13
--- llvm/docs/Makefile:1.12     Wed Jul  5 19:36:52 2006
+++ llvm/docs/Makefile  Sat Mar  3 18:45:50 2007
@@ -13,10 +13,17 @@
 ifdef BUILD_FOR_WEBSITE
 PROJ_OBJ_DIR = .
 DOXYGEN = doxygen
+# Extract version number from the AC_INT line in configure.ac
+# AC_INIT([[llvm]],[[2.0cvs]],[EMAIL PROTECTED])
+PACKAGE_VERSION = $(shell grep AC_INIT ../autoconf/configure.ac | sed -e 
's/[^,]*,[[][[]//' -e 's/]],.*//')
+$(warning VERSION=$(VERSION))
 
 doxygen.cfg: doxygen.cfg.in
-       cat $< | sed 's/@abs_top_srcdir@/../g' | sed 's/@DOT@/dot/g' | \
-        sed 's/@PACKAGE_VERSION@/CVS/g' | sed 's/@abs_top_builddir@/../g' > $@
+       cat $< | sed \
+         -e 's/@abs_top_srcdir@/../g' \
+         -e 's/@DOT@/dot/g' \
+         -e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/g' \
+         -e 's/@abs_top_builddir@/../g' > $@
 endif
 
 include $(LEVEL)/Makefile.common



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to