]> git.saurik.com Git - wxWidgets.git/commitdiff
Check that doxygen version is 1.8.2 in docs generation script.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Nov 2012 12:44:56 +0000 (12:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Nov 2012 12:44:56 +0000 (12:44 +0000)
Doxygen often has backwards incompatible changes, so verify that we really use
the version the docs are supposed to be generated with.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/doxygen/regen.sh

index 6b52bdd621a5208a7aa10e0f7cd281d11034d117..1a5d7f067e35f5014bd35163f6705c258b8ae61c 100755 (executable)
@@ -36,6 +36,21 @@ if [ "$DOXYGEN" = "" ]; then
     DOXYGEN=doxygen
 fi
 
+# Check that doxygen has the correct version as different versions of it are
+# unfortunately not always (in fact, practically never) compatible.
+#
+# Still allow using incompatible version for some quick local testing if really
+# needed and 1.8.2 can't be installed for whatever reason.
+if [[ -z $WX_SKIP_DOXYGEN_VERSION_CHECK ]]; then
+    doxygen_version=`$DOXYGEN --version`
+    doxygen_version_required=1.8.2
+    if [[ $doxygen_version != $doxygen_version_required ]]; then
+        echo "Doxygen version $doxygen_version is not supported."
+        echo "Please use Doxygen $doxygen_version_required or export WX_SKIP_DOXYGEN_VERSION_CHECK."
+        exit 1
+    fi
+fi
+
 # prepare folders for the cp commands below
 mkdir -p out/html       # we need to copy files in this folder below
 mkdir -p out/html/generic