Debian Codegraph @

lib/package-html

raw
1 # -*-Shell-script-*-
2 #
3 # Copyright (C) 2015-2020 SUSE Software Solutions Germany GmbH
4 #
5 # Author:
6 # Frank Sundermeyer <fsundermeyer at opensuse dot org>
7 #
8 ###########################################################################
9 #
10 # Package HTML
11 #
12 # Subcommand: package-html
13 #
14 ###########################################################################
15 function package-html {
16 local SHORT_OPTS LONG_OPTS SUB_CMD
17 SUB_CMD=$1
18 shift
19
20 SHORT_OPTS="h"
21 LONG_OPTS="css:,desktopfiles,documentfiles,help,html5,name:,not-validate-tables,pagefiles,param:,rootid:,set-date:,single,statdir:,stringparam:,xsltparam:"
22
23 parse_args "$SHORT_OPTS" "$LONG_OPTS" "$SUB_CMD" "$@"
24 eval set -- "$P_REMAIN_ARGS"
25
26 #------ Computing the values returned from the parser -----
27 if [[ 1 -eq $P_HELP ]]; then
28 help_scmd_head "$SUB_CMD" "${HELP_SUBCOMMAND[$SUB_CMD]}"
29 help_css
30 help_desktopfiles
31 help_documentfiles
32 help_help
33 help_html5
34 help_name
35 help_not-validate-tables
36 help_pagefiles
37 help_param
38 help_rootid
39 help_set-date
40 help_single
41 help_statdir
42 help_stringparam "creates the .html files from the profiled sources"
43 echo
44 exit 0
45 fi
46
47
48 [[ -n "$P_CSS" ]] && export HTML_CSS="$P_CSS"
49
50 # We always want to start with a clean HTML result directory for
51 # package-html
52 #
53 [[ "package-html" = "$SUB_CMD" ]] && export CLEAN_DIR=1
54
55 call_make "$SUB_CMD" "$@"
56 }