diff options
Diffstat (limited to 'users/bcat/compile.sh')
-rwxr-xr-x | users/bcat/compile.sh | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/users/bcat/compile.sh b/users/bcat/compile.sh new file mode 100755 index 000000000..81551f0ec --- /dev/null +++ b/users/bcat/compile.sh | |||
@@ -0,0 +1,51 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | set -o errexit -o nounset | ||
4 | |||
5 | usage () { | ||
6 | printf "\ | ||
7 | usage: ./users/bcat/compile.sh [-c] [-j N] | ||
8 | |||
9 | Compiles all keyboards for which bcat maintains keymaps. | ||
10 | |||
11 | optional arguments: | ||
12 | -c performs a clean build | ||
13 | -j N runs N make tasks in parallel | ||
14 | -v shows verbose output | ||
15 | " | ||
16 | } | ||
17 | |||
18 | compile () { | ||
19 | local keyboard=$1 layout=${2:-} | ||
20 | FORCE_LAYOUT="$layout" SILENT="$opt_silent" make -j "$opt_parallel" "$keyboard":bcat | ||
21 | } | ||
22 | |||
23 | opt_parallel=1 | ||
24 | opt_silent=true | ||
25 | |||
26 | while getopts :chj:v opt; do | ||
27 | case $opt in | ||
28 | c) opt_clean=1 ;; | ||
29 | j) opt_parallel=$OPTARG ;; | ||
30 | v) opt_silent=false ;; | ||
31 | h) usage; exit 0 ;; | ||
32 | \?) usage >&2; exit 2 ;; | ||
33 | esac | ||
34 | done | ||
35 | |||
36 | if [[ -n ${opt_clean:-} ]]; then | ||
37 | SILENT="$opt_silent" make clean | ||
38 | fi | ||
39 | |||
40 | compile 9key | ||
41 | compile ai03/polaris 60_tsangan_hhkb | ||
42 | compile cannonkeys/an_c 60_tsangan_hhkb | ||
43 | compile cannonkeys/instant60 60_tsangan_hhkb | ||
44 | compile crkbd/rev1 split_3x6_3 | ||
45 | compile dz60 60_ansi_split_bs_rshift | ||
46 | compile dz60 60_tsangan_hhkb | ||
47 | compile eco/rev2 | ||
48 | compile kbdfans/kbd67/hotswap 65_ansi_blocker_split_bs | ||
49 | compile keebio/bdn9/rev1 | ||
50 | compile keebio/quefrency/rev1 | ||
51 | compile lily58/rev1 | ||