Revision: 42051
http://brlcad.svn.sourceforge.net/brlcad/?rev=42051&view=rev
Author: starseeker
Date: 2011-01-10 00:12:50 +0000 (Mon, 10 Jan 2011)
Log Message:
-----------
Start prototyping a system to use the GLOB feature of CMake to test whether our
lists of files are complete - may be able to work out an EXTRA_DIST like
feature, although this should probably only be run when a specific target is
called and needs to handle all the various directories... may or may not be
worth it, we could just do a clean svn checkout prior to packaging up for
distribution.
Modified Paths:
--------------
brlcad/branches/cmake/doc/docbook/system/mann/en/CMakeLists.txt
Modified: brlcad/branches/cmake/doc/docbook/system/mann/en/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/doc/docbook/system/mann/en/CMakeLists.txt
2011-01-09 23:23:00 UTC (rev 42050)
+++ brlcad/branches/cmake/doc/docbook/system/mann/en/CMakeLists.txt
2011-01-10 00:12:50 UTC (rev 42051)
@@ -1,3 +1,10 @@
+FILE(GLOB ALL_MANN_EN_XML_FULLPATH "*.xml")
+FOREACH(ITEM ${ALL_MANN_EN_XML_FULLPATH})
+ GET_FILENAME_COMPONENT(ITEM_NAME ${ITEM} NAME)
+ LIST(APPEND ALL_MANN_EN_XML ${ITEM_NAME})
+ENDFOREACH(ITEM ${ALL_MANN_EN_XML_FULLPATH})
+LIST(LENGTH ALL_MANN_EN_XML ALL_MANN_EN_XML_COUNT)
+
SET(docbook_mann_EN
3ptarb.xml
B.xml
@@ -226,21 +233,34 @@
window.xml
window_frame.xml
wire.xml
- wmater.xml
- x.xml
- xpush.xml
+ wmater.xml
+ x.xml
+ xpush.xml
zoom.xml
-)
+ )
SET(docbook_mann_INTRO
- Introduction.xml
-)
+ Introduction.xml
+ )
+SET(KNOWN_MANN_EN_XML ${docbook_mann_EN} ${docbook_mann_INTRO})
+LIST(LENGTH KNOWN_MANN_EN_XML KNOWN_MANN_EN_XML_COUNT)
+IF(NOT ALL_MANN_EN_XML_COUNT EQUAL KNOWN_MANN_EN_XML_COUNT)
+ FOREACH(ALL_ITEM ${ALL_MANN_EN_XML})
+ LIST(FIND KNOWN_MANN_EN_XML ${ALL_ITEM} ITEM_FOUND)
+ IF(ITEM_FOUND EQUAL -1)
+ SET(UNKNOWN_LIST "${UNKNOWN_LIST}\n${ALL_ITEM}")
+ ENDIF(ITEM_FOUND EQUAL -1)
+ ENDFOREACH(ALL_ITEM ${ALL_MANN_EN_XML})
+ MESSAGE(FATAL_ERROR "File(s) present in ${CMAKE_CURRENT_SOURCE_DIR}
that are not in CMakeLists.txt build logic:
+ ${UNKNOWN_LIST}")
+ENDIF(NOT ALL_MANN_EN_XML_COUNT EQUAL KNOWN_MANN_EN_XML_COUNT)
+
DOCBOOK_TO_HTML(mann docbook_mann_EN ${BRLCAD_INSTALL_DATA_DIR}/html/mann/en)
DOCBOOK_TO_HTML(mann docbook_mann_INTRO
${BRLCAD_INSTALL_DATA_DIR}/html/mann/en)
DOCBOOK_TO_MAN(mann docbook_mann_EN n nged)
IF(BRLCAD-BUILD_EXTRADOCS_PDF_MAN)
- DOCBOOK_TO_PDF(mann docbook_mann_EN ${BRLCAD_INSTALL_DATA_DIR}/pdf/mann/en)
+ DOCBOOK_TO_PDF(mann docbook_mann_EN
${BRLCAD_INSTALL_DATA_DIR}/pdf/mann/en)
ENDIF(BRLCAD-BUILD_EXTRADOCS_PDF_MAN)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits