aboutsummaryrefslogtreecommitdiff
path: root/users/bcat/compile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'users/bcat/compile.sh')
-rwxr-xr-xusers/bcat/compile.sh51
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
3set -o errexit -o nounset
4
5usage () {
6 printf "\
7usage: ./users/bcat/compile.sh [-c] [-j N]
8
9Compiles all keyboards for which bcat maintains keymaps.
10
11optional arguments:
12 -c performs a clean build
13 -j N runs N make tasks in parallel
14 -v shows verbose output
15"
16}
17
18compile () {
19 local keyboard=$1 layout=${2:-}
20 FORCE_LAYOUT="$layout" SILENT="$opt_silent" make -j "$opt_parallel" "$keyboard":bcat
21}
22
23opt_parallel=1
24opt_silent=true
25
26while 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
34done
35
36if [[ -n ${opt_clean:-} ]]; then
37 SILENT="$opt_silent" make clean
38fi
39
40compile 9key
41compile ai03/polaris 60_tsangan_hhkb
42compile cannonkeys/an_c 60_tsangan_hhkb
43compile cannonkeys/instant60 60_tsangan_hhkb
44compile crkbd/rev1 split_3x6_3
45compile dz60 60_ansi_split_bs_rshift
46compile dz60 60_tsangan_hhkb
47compile eco/rev2
48compile kbdfans/kbd67/hotswap 65_ansi_blocker_split_bs
49compile keebio/bdn9/rev1
50compile keebio/quefrency/rev1
51compile lily58/rev1