#!/bin/sh
# ------------------------------------------------------------------------------
# Copyright 2009 Newport Software Technologies, UNICEN
#
# This file is part of XGAP.
#
# XGAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# XGAP is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with XGAP.  If not, see <http://www.gnu.org/licenses/>.
# ------------------------------------------------------------------------------
# Genera la documentación de las plantillas XSLT, usando XSLTdoc.
# Ejecutar en el mismo directorio donde está este script.
# ------------------------------------------------------------------------------

# Valores configurables
XSLTDOC_HOME=/usr/local/XSLTdoc1
JAVA_BIN=java
# No modificar
XSLTDOC_PROC=${XSLTDOC_HOME}/xsl/xsltdoc.xsl
PROG=${XSLTDOC_HOME}/lib/saxon8.jar
CONF_DIR=`pwd`
CONF_FILE=${CONF_DIR}/xsltdoc-conf.xml
OUT_DIR=${CONF_DIR}/xsltdoc

echo JAVA_BIN: $JAVA_BIN
echo XSLTDOC_HOME: $XSLTDOC_HOME
echo XSLTDOC_PROC: $XSLTDOC_PROC
echo PROG: $PROG
echo CONF_FILE: $CONF_FILE
echo OUT_DIR: $OUT_DIR
$JAVA_BIN -jar $PROG $CONF_FILE $XSLTDOC_PROC
cp -u ${XSLTDOC_HOME}/css/*.css $OUT_DIR
