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
|
# -*-Shell-script-*-
#
# Copyright (C) 2015-2020 SUSE Software Solutions Germany GmbH
#
# Author:
# Frank Sundermeyer <fsundermeyer at opensuse dot org>
#
###########################################################################
#
# PACKAGING locdrop
#
# Subcommand: locdrop only
#
###########################################################################
function build_locdrop {
local SHORT_OPTS LONG_OPTS SUB_CMD
SUB_CMD=$1
shift
SHORT_OPTS="h"
LONG_OPTS="def-file:,export-dir:,help,name:,nopdf,not-validate-tables,optipng,rootid:"
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_def-file
help_export-dir
help_help
help_name
help_nopdf
help_not-validate-tables
help_rootid
help_optipng
echo
exit 0
fi
if [[ -z "$DEF_FILE" ]]; then
[[ 0 -ne $VERBOSITY ]] && ccecho "warn" "Warning: No DEF file was specified"
fi
call_make "profile" "$@" || exit_on_error "Profiling failed"
call_make "$SUB_CMD" "$@"
}
|