File indexing completed on 2024-05-05 17:18:22

0001 #!/bin/bash
0002 
0003 # Let's call the KDE catalog first
0004 export XML_CATALOG_FILES="/usr/share/kf5/kdoctools/customization/catalog.xml"
0005 
0006 # Check if docbook is well formed
0007 echo "Running checkXML… ";
0008 checkXML5 $1;
0009 if [ $? -gt 0 ]; then
0010   echo " -> checkXML failed !";
0011   exit 1;
0012 fi
0013 echo " -> OK !";
0014 
0015 # Convert to html
0016 echo "Running xsltproc… ";
0017 xsltproc -o $2 /usr/share/kf5/kdoctools/customization/kde-nochunk.xsl $1;
0018 if [ $? -gt 0 ]; then
0019   echo " -> xsltproc failed !";
0020   exit 1;
0021 else
0022   echo " -> OK !";
0023 fi
0024 
0025 
0026 exit 0;