Print

Print


Commit in lcdd on MAIN
CMakeLists.txt+161.5 -> 1.6
scripts/create-schema-doc.sh.in+24added 1.1
       /gen-xs-docs.sh-401.6 removed
+40-40
1 added + 1 removed + 1 modified, total 3 files
add install hook for creating XML schema doc; remove old script; resolves LCDD-100

lcdd
CMakeLists.txt 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- CMakeLists.txt	1 Jul 2013 21:55:33 -0000	1.5
+++ CMakeLists.txt	10 Jul 2013 21:39:56 -0000	1.6
@@ -105,6 +105,22 @@
     
     # add doxygen documentation to install step
     INSTALL( CODE "EXECUTE_PROCESS( COMMAND doxygen ${PROJECT_SOURCE_DIR}/config/doxygen/lcdd_doxygen.cfg)" )
+    
+    # check for Xalan XSLT processor for creating schema documentation
+    IF ( DEFINED XALAN_DIR )
+    
+        MESSAGE( STATUS "Found Xalan: ${XALAN_DIR}" )
+   	    MESSAGE( STATUS "XALAN_DIR is set.  XML schema documentation will be created." )
+   	    
+   	    # create script with local settings
+   	    CONFIGURE_FILE( ${PROJECT_SOURCE_DIR}/scripts/create-schema-doc.sh.in ${PROJECT_SOURCE_DIR}/scripts/create-schema-doc.sh )
+   	    
+   	    # run script to generate schema doc
+   	    INSTALL( CODE "EXECUTE_PROCESS( COMMAND ${PROJECT_SOURCE_DIR}/scripts/create-schema-doc.sh)" )
+   	    
+   	ELSE()
+   	    MESSAGE( STATUS "XALAN_DIR not set.  XML schema documentation will not be created." ) 
+    ENDIF()
 ELSE() 
     # message that documentation is off for this build
     MESSAGE( STATUS "INSTALL_DOC is set to OFF.  Documentation will not be created." ) 

lcdd/scripts
create-schema-doc.sh.in added at 1.1
diff -N create-schema-doc.sh.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ create-schema-doc.sh.in	10 Jul 2013 21:39:56 -0000	1.1
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+####################################################################################
+#
+# Generate XML schema documentation using the xs3p stylesheet with Xalan processor.
+#
+####################################################################################
+
+# location of LCDD schemas
+SCHEMA_DOC=@PROJECT_SOURCE_DIR@/doc/schemas
+
+(
+  # Xalan jars
+  export CLASSPATH=@[log in to unmask]:@[log in to unmask]:@[log in to unmask]
+
+  # change to schema dir
+  cd @[log in to unmask]
+
+  # process the schemas to produce HTML doc
+  for x in $(ls *.xsd); do
+    echo "processing: $x"
+    java org.apache.xalan.xslt.Process -IN $x -XSL @[log in to unmask] -OUT @[log in to unmask]
+  done
+)

lcdd/scripts
gen-xs-docs.sh removed after 1.6
diff -N gen-xs-docs.sh
--- gen-xs-docs.sh	16 Jun 2008 17:44:54 -0000	1.6
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-# $Header: /cvs/lcd/lcdd/scripts/Attic/gen-xs-docs.sh,v 1.6 2008/06/16 17:44:54 jeremy Exp $
-
-# Generate schema documentation using xs3p.
-
-source setup-xalan.sh
-
-SCHEMA_DOC=$LCDD_BASE/doc/schemas
-
-# xs3p stylesheet location
-XS3P=$SCHEMA_DOC
-
-(
-  if [ -n "$LCDD_BASE" ]; then
-
-    # GDML
-    cd $LCDD_BASE/schemas/gdml/1.0
-
-    for xs in `ls *.xsd`; do
-      echo "processing: $xs"
-      java org.apache.xalan.xslt.Process -IN ${xs} \
-                                         -XSL $XS3P/xs3p.xsl \
-                                         -OUT $LCDD_BASE/doc/schemas/${xs}.html 
-    done
-
-    # LCDD
-    cd $LCDD_BASE/schemas/lcdd/1.0
-
-    for xs in `ls *.xsd`; do
-      echo "processing: $xs"
-      java org.apache.xalan.xslt.Process -IN ${xs} \
-                                         -XSL $XS3P/xs3p.xsl \
-                                         -OUT $LCDD_BASE/doc/schemas/${xs}.html 
-    done
-
-  else
-    echo "Set LCDD_BASE before running." 
-  fi
-)
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1