[asterisk-commits] lathama: trunk r374949 - /trunk/Makefile
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat Oct 13 11:05:14 CDT 2012
Author: lathama
Date: Sat Oct 13 11:05:12 2012
New Revision: 374949
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=374949
Log:
Test for Asterisk Version info
Doxygen uses the ASTERISKVERSION as a sub header. If a SVN export is done and not .svn or .version file exists it defualts to UNKNOWN__and_probably_unsupported which is honest but not great for the online docs. During the "make progdocs" I added a test for this and just warned and ommitted the version.
(issue ASTERISK-20259)
Modified:
trunk/Makefile
Modified: trunk/Makefile
URL: http://svnview.digium.com/svn/asterisk/trunk/Makefile?view=diff&rev=374949&r1=374948&r2=374949
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Sat Oct 13 11:05:12 2012
@@ -747,7 +747,11 @@
@sed -i "/^HAVE_DOT/s/NO/YES/" contrib/asterisk-ng-doxygen
endif
# Set Doxygen PROJECT_NUMBER variable
+ifneq ($(ASTERISKVERSION),UNKNOWN__and_probably_unsupported)
@sed -i "/^PROJECT_NUMBER/s/PROJECT_NUMBER.*/PROJECT_NUMBER = "$(ASTERISKVERSION)"/" contrib/asterisk-ng-doxygen
+else
+ echo "Asterisk Version is unknown, not configuring Doxygen PROJECT_NUMBER."
+endif
# Validate Doxygen Configuration
@doxygen -u contrib/asterisk-ng-doxygen
# Run Doxygen
More information about the asterisk-commits
mailing list