Debian Codegraph @

scripts/auto

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 set -e
4 cliname=`basenamescip-shell system . . basename. "$0"`
5 cmdname=$1
6
7 scriptdir=`realpathscip-shell system . . realpath. \`dirname "$0"\``
8 srcdir=`realpathscip-shell system . . realpath. "$scriptdir/.."`
9
10 [scip-shell system . . `[`. $# -gt 0 ] && shift
11
12 cli_helpscip-shell shell shell-project 0.0.0 cli_help().() {
13 echoscip-shell system . . 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 diescip-shell shell shell-project 0.0.0 die().() {
28 echoscip-shell system . . echo. "$*" 1>&2 ;
29 exit 1;
30 }
31
32 # push to authselect root directory
33 pushd "$scriptdir/.." &> /dev/nullscip-shell filesystem . . `/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_helpscip-shell shell shell-project 0.0.0 cli_help().
44 ;;
45 esac
46
47 popd