# -*-Shell-script-*- # # Copyright (C) 2015-2020 SUSE Software Solutions Germany GmbH # # Author: # Frank Sundermeyer # ########################################################################### # # PACKAGING package-src # # Subcommands: package-src only # ########################################################################### function package-src { local SHORT_OPTS LONG_OPTS SUB_CMD SUB_CMD=$1 shift SHORT_OPTS="h" LONG_OPTS="def-file:,help,locdrop,name:,not-validate-tables,optipng,set-date:" 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_help help_locdrop help_name help_not-validate-tables help_optipng help_set-date echo exit 0 fi if [[ -z "$DEF_FILE" ]]; then [[ 0 -ne $VERBOSITY ]] && ccecho "warn" "Warning: No DEF file was specified" fi call_make "$SUB_CMD" "$@" }