Debian Codegraph @

lib/images

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 # IMAGES
11 #
12 # Generate images. For debugging and testing purposes
13 #
14 ###########################################################################
15
16 function build_images {
17 local SHORT_OPTS LONG_OPTS SUB_CMD
18 SUB_CMD=$1
19 shift
20
21 SHORT_OPTS="h"
22 LONG_OPTS="color,gen,grayscale,online,rootid:"
23
24 parse_args "$SHORT_OPTS" "$LONG_OPTS" "$SUB_CMD" "$@"
25 eval set -- "$P_REMAIN_ARGS"
26
27 #------ Computing the values returned from the parser -----
28 if [[ 1 -eq $P_HELP ]]; then
29 help_scmd_head "$SUB_CMD" "${HELP_SUBCOMMAND[$SUB_CMD]}"
30 help_color
31 help_gen
32 help_grayscale_images
33 help_help
34 help_online
35 help_rootid
36 echo
37 exit 0
38 fi
39
40 if [[ 1 -ne $IMAGES_COLOR && 1 -ne $IMAGES_GEN && 1 -ne $GRAYSCALE && 1 -ne $IMAGES_ONLINE ]]; then
41 export IMAGES_ALL=1
42 fi
43
44 call_make "$SUB_CMD" "$@"
45 }