This repository was archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.kaleidoscope-builder.conf
56 lines (51 loc) · 1.55 KB
/
.kaleidoscope-builder.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- mode: sh -*-
update () {
pushd .
cd lib/hardware/keyboardio
echo
echo "Updating lib/hardware/keyboardio ..."
git pull
git submodule update --init --recursive
popd > /dev/null
echo "Updating plugins ..."
cd lib/plugins/AutoShift
git pull
cd ../ProperShifting
git pull
cd ../QuickNav
git pull
}
setup () {
setup_kaleidoscope
setup_plugins
}
setup_kaleidoscope () {
if [ ! -e lib/hardware/keyboardio ]
then
echo 'Cloning Kaleidoscope ...'
git clone --recurse-submodules https://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio lib/hardware/keyboardio
else
echo 'Kaleidoscope already installed. Skipping.'
fi
}
setup_plugins () {
if [ ! -e lib/plugins ]
then
echo 'Cloning plugins ...'
git clone [email protected]:tiltowait/Kaleidoscope-AutoShift.git lib/plugins/AutoShift
git clone [email protected]:tiltowait/Kaleidoscope-ProperShifting.git lib/plugins/ProperShifting
git clone [email protected]:tiltowait/Kaleidoscope-QuickNav.git lib/plugins/QuickNav
else
echo 'Plugins already installed. Skipping.'
fi
}
GIT_REV="$(git describe --tags --always --dirty)"
if [ -d lib/hardware/keyboardio/avr/libraries/Kaleidoscope ]; then
KALEIDOSCOPE_GITREV="$(cd lib/hardware/keyboardio/avr/libraries/Kaleidoscope && git rev-parse --short HEAD)"
else
KALEIDOSCOPE_GITREV="<unknown>"
fi
LOCAL_CFLAGS="-DGIT_REV=\"${GIT_REV}\" -DKALEIDOSCOPE_GITREV=\"${KALEIDOSCOPE_GITREV}\""
EXTRA_BUILDER_ARGS="-libraries lib/plugins"
BOARD_HARDWARE_PATH="${BOARD_HARDWARE_PATH:-${SOURCEDIR}/lib/hardware}"
DEFAULT_SKETCH=tiltowait