[llvm-commits] [llvm] r37905 - /llvm/trunk/docs/Makefile
Reid Spencer
reid at x10sys.com
Thu Jul 5 03:00:19 PDT 2007
Author: reid
Date: Thu Jul 5 05:00:19 2007
New Revision: 37905
URL: http://llvm.org/viewvc/llvm-project?rev=37905&view=rev
Log:
Get the version number right, finally.
Modified:
llvm/trunk/docs/Makefile
Modified: llvm/trunk/docs/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Makefile?rev=37905&r1=37904&r2=37905&view=diff
==============================================================================
--- llvm/trunk/docs/Makefile (original)
+++ llvm/trunk/docs/Makefile Thu Jul 5 05:00:19 2007
@@ -15,14 +15,13 @@
DOXYGEN = doxygen
# Extract version number from the AC_INT line in configure.ac
# AC_INIT([[llvm]],[[2.1cvs]],[llvmbugs at cs.uiuc.edu])
-PACKAGE_VERSION = $(shell grep AC_INIT ../autoconf/configure.ac | sed -e 's/[^,]*,[[][[]//' -e 's/]],.*//')
-$(warning VERSION=$(VERSION))
+PACKAGE_VERSION = $(shell grep AC_INIT ../autoconf/configure.ac | sed -e 's/^[^0-9]*\([0-9_.a-zA-Z-]*\).*/\1/' )
$(PROJ_OBJ_DIR)/doxygen.cfg: doxygen.cfg.in
cat $< | sed \
-e 's/@abs_top_srcdir@/../g' \
-e 's/@DOT@/dot/g' \
- -e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/g' \
+ -e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/' \
-e 's/@abs_top_builddir@/../g' > $@
endif
More information about the llvm-commits
mailing list