CVS: moonbase/doc-tools/docbook-xsl DETAILS, 1.7,
1.8 rebuild-docbook-catalog, 1.6, 1.7
r0dzilla at lunar-linux.org
r0dzilla at lunar-linux.org
Wed Sep 17 01:34:55 GMT 2003
Update of /var/cvs/lunar/moonbase/doc-tools/docbook-xsl
In directory dbguin.lunar-linux.org:/tmp/cvs-serv32132
Modified Files:
DETAILS rebuild-docbook-catalog
Log Message:
added code in rebuild-docbook-catalog to re-compile scrollkeeper if its dtd files cant be found...
Index: DETAILS
===================================================================
RCS file: /var/cvs/lunar/moonbase/doc-tools/docbook-xsl/DETAILS,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- DETAILS 14 Sep 2003 21:37:35 -0000 1.7
+++ DETAILS 17 Sep 2003 01:34:53 -0000 1.8
@@ -5,7 +5,7 @@
SOURCE_URL[0]=$SFORGE_URL/docbook/$SOURCE
WEB_SITE=http://docbook.sourceforge.net/projects/xsl/
ENTERED=20020703
- UPDATED=20030914
+ UPDATED=20030916
SHORT="These are XSL stylesheets for the DocBook DTD and its derivatives (Simplified DocBook, etc.)."
cat << EOF
XSL is a standard W3C stylesheet language (Extensible Stylesheet Language) for both print and online rendering. For more information about XSL, see the XSL page at the W3C.
Index: rebuild-docbook-catalog
===================================================================
RCS file: /var/cvs/lunar/moonbase/doc-tools/docbook-xsl/rebuild-docbook-catalog,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- rebuild-docbook-catalog 14 Sep 2003 21:56:43 -0000 1.6
+++ rebuild-docbook-catalog 17 Sep 2003 01:34:53 -0000 1.7
@@ -297,14 +297,33 @@
#
scrollkeeperdir=/usr/share/xml/scrollkeeper/dtds
top=`dirname $docbookdir`
-found=`find $top -name scrollkeeper-omf.dtd`
-if [ "$found" = "" ] ; then
- found=`find /usr/share/xml -name scrollkeeper-omf.dtd`
-fi
-if [ "$found" = "" ] ; then
- echo could not locate scrollkeeper dtd files
- exit 1
-fi
+linforced="no"
+sksearch=""
+
+until [ "$sksearch" = "end" ]
+do
+ if [ "$linforced" = "yes" ] ; then
+ echo "Ok, we're back from re-compiling scrollkeeper..."
+ echo "Let's test for scrollkeeper's dtds again..."
+ fi
+ found=`find $top -name scrollkeeper-omf.dtd`
+ if [ "$found" = "" ] ; then
+ found=`find /usr/share/xml -name scrollkeeper-omf.dtd`
+ fi
+ if [ "$found" = "" ] ; then
+ if [ "$linforced" = "no" ] ; then
+ linforced="yes"
+ echo "Looks like scrollkeeper install is missing some files..."
+ echo "Forcing re-compile of scrollkeeper to try to replace missing files..."
+ lin -c scrollkeeper
+ else
+ echo could not locate scrollkeeper dtd files
+ exit 1
+ fi
+ else
+ sksearch="end"
+ fi
+done
if [ -d $scrollkeeperdir ]; then
More information about the Lunar-commits
mailing list