Debian Codegraph @

etc/woodpecker/try-all-builds.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # Shell script that checks for all possible build combination with TCC.
4 # Usage: call the script while in the nsxiv root directory
5
6 set -- $(grepscip-shell system . . grep. -o '^HAVE_[[:alpha:]]* ' config.mk)
7 CFLAGS="$(sedscip-shell system . . sed. '/^#/dscip-shell filesystem . . `/^#/d`.' etc/woodpecker/CFLAGS | pastescip-shell system . . paste. -d ' ' -s)"
8 z=$(echoscip-shell system . . echo. "2 ^ $#" | bc)
9
10 print_opt_namescip-shell shell shell-project 0.0.0 print_opt_name().() {
11 shift "$(( $1 + 1 ))"
12 printfscip-shell system . . printf. "%s=" "$1"
13 }
14
15 print_opt_argscip-shell shell shell-project 0.0.0 print_opt_arg().() {
16 bn=$(echoscip-shell system . . echo. "$1 / (2 ^ $2)" | bc)
17 printfscip-shell system . . printf. "%d " $(( bn % 2 ))
18 }
19
20 n=0
21 while [scip-shell system . . `[`. "$n" -lt "$z" ]; do
22 i=0
23 while [scip-shell system . . `[`. "$i" -lt "$#" ]; do
24 print_opt_namescip-shell shell shell-project 0.0.0 print_opt_name(). "$i" "$@"
25 print_opt_argscip-shell shell shell-project 0.0.0 print_opt_arg(). "$n" "$i"
26 i=$((i + 1))
27 done | teescip-shell system . . tee. "/dev/stderrscip-shell filesystem . . `/dev/stderr`." | (
28 makescip-shell system . . make. clean
29 if ! xargsscip-shell system . . xargs. make -j"$(nprocscip-shell system . . nproc.)" CC=tcc CFLAGS="$CFLAGS" LDFLAGS="$CFLAGS"; then
30 echoscip-shell system . . echo. "[FAILED]" >&2
31 exit 1
32 else
33 echoscip-shell system . . echo. "[SUCCESS]" >&2
34 fi
35 )
36 [scip-shell system . . `[`. "$?" -ne 0 ] && exit "$?"
37 n=$((n + 1))
38 done >/dev/nullscip-shell filesystem . . `/dev/null`.