Debian Codegraph @

scripts/auto

raw symbols SCIP
1 #!/bin/bash
2
3 set -e
4 cliname=`basename "$0"`
5 cmdname=$1
6
7 scriptdir=`realpath \`dirname "$0"\``
8 srcdir=`realpath "$scriptdir/.."`
9
10 [ $# -gt 0 ] && shift
11
12 cli_help() {
13 echo "
14 Authselect Automation Scripts
15
16 Usage: $cliname [command]
17
18 Commands:
19 install-build-deps Install build dependencies.
20 make-srpm Make source RPM.
21 * Help
22 "
23 exit 1
24 }
25
26 # helper functions
27 die() {
28 echo "$*" 1>&2 ;
29 exit 1;
30 }
31
32 # push to authselect root directory
33 pushd "$scriptdir/.." &> /dev/null
34
35 case "$cmdname" in
36 install-build-deps)
37 . "$scriptdir/commands/install-build-deps.sh" "$@"
38 ;;
39 make-srpm)
40 . "$scriptdir/commands/make-srpm.sh" "$@"
41 ;;
42 *)
43 cli_help
44 ;;
45 esac
46
47 popd