1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
# -*-Shell-script-*-
#
# Copyright (C) 2015-2020 SUSE Software Solutions Germany GmbH
#
# Author:
# Frank Sundermeyer <fsundermeyer at opensuse dot org>
#
###########################################################################
#
# WEBHELP
#
# Subcommands: webhelp
#
###########################################################################
function webhelp {
local EXTENSION SHORT_OPTS LONG_OPTS SUB_CMD
SUB_CMD=$1
shift
SHORT_OPTS="h"
LONG_OPTS="clean,css:,draft,help,name:,norefcheck,nosearch,nostatic,not-validate-tables,param:,remarks,rootid:,static,stringparam:,xsltparam:"
parse_args "$SHORT_OPTS" "$LONG_OPTS" "$SUB_CMD" "$@"
eval set -- "$P_REMAIN_ARGS"
#------ Computing the values returned from the parser -----
if [[ 1 -eq $P_HELP ]]; then
help_scmd_head "$SUB_CMD" "${HELP_SUBCOMMAND[$SUB_CMD]}"
help_clean
help_css
help_draft
help_help
help_name
help_not-validate-tables
help_norefcheck
help_nosearch
help_nostatic
help_param
help_remarks
help_rootid
help_stringparam "creates Webhelp HTML from the profiled sources"
echo
exit 0
fi
for EXTENSION in $DOCBOOK_STYLES/extensions/webhelpindexer.jar \
$DOCBOOK_STYLES/extensions/lucene-analyzers-*.jar \
$DOCBOOK_STYLES/extensions/lucene-core-*.jar \
$DOCBOOK_STYLES/extensions/tagsoup-*.jar; do
if [[ ! -f $EXTENSION ]]; then
exit_on_error "\nwebhelp only works when a recent snapshot of the DocBook stylesheets is\ninstalled. Your version of the DocBook styles at\n$DOCBOOK_STYLES\nis not webhelp capable."
fi
done
if [[ -n "$P_CSS" ]]; then
if [[ $P_CSS = "none" || -f "$P_CSS" ]]; then
export HTML_CSS="$P_CSS"
else
exit_on_error "Cannot find CSS file $P_CSS (have you specified a correct path?)."
fi
fi
call_make "$SUB_CMD" "$@"
}
|