Debian Codegraph @

lib/locdrop

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 # PACKAGING locdrop
11 #
12 # Subcommand: locdrop only
13 #
14 ###########################################################################
15 function build_locdrop {
16 local SHORT_OPTS LONG_OPTS SUB_CMD
17 SUB_CMD=$1
18 shift
19
20 SHORT_OPTS="h"
21 LONG_OPTS="def-file:,export-dir:,help,name:,nopdf,not-validate-tables,optipng,rootid:"
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_def-file
30 help_export-dir
31 help_help
32 help_name
33 help_nopdf
34 help_not-validate-tables
35 help_rootid
36 help_optipng
37 echo
38 exit 0
39 fi
40
41 if [[ -z "$DEF_FILE" ]]; then
42 [[ 0 -ne $VERBOSITY ]] && ccecho "warn" "Warning: No DEF file was specified"
43 fi
44
45 call_make "profile" "$@" || exit_on_error "Profiling failed"
46 call_make "$SUB_CMD" "$@"
47 }