-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmk_core.sh
executable file
·49 lines (42 loc) · 1.82 KB
/
tmk_core.sh
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
#!/bin/sh
# path: /home/klassiker/.local/share/repos/zenith-xt-usb/tmk_core.sh
# author: klassiker [mrdotx]
# github: https://github.com/mrdotx/zenith-xt-usb
# date: 2025-03-10T06:09:19+0100
tmk_core_path="$HOME/.local/share/repos/zenith-xt-usb/tmk_core"
# color variables
reset="\033[0m"
bold="\033[1m"
blue="\033[94m"
cyan="\033[96m"
printf '%b%b::%b %bREMOVE%b folder %b%s%b\n' \
"$bold" "$blue" "$reset" "$bold" "$reset" "$cyan" "$tmk_core_path" "$reset"
rm -rf "$tmk_core_path"
printf '%b%b::%b %bCLONE%b tmk_core and %bREMOVE%b .git files/folders\n' \
"$bold" "$blue" "$reset" "$bold" "$reset" "$bold" "$reset"
git clone \
git@github.com:tmk/tmk_core.git \
"$tmk_core_path"
rm -rf \
"$tmk_core_path/.git" \
"$tmk_core_path/.gitignore" \
"$tmk_core_path/.gitmodules"
printf '%b%b::%b %bCLONE%b submodule lufa and %bREMOVE%b .git files/folders\n' \
"$bold" "$blue" "$reset" "$bold" "$reset" "$bold" "$reset"
git clone \
git@github.com:abcminiuser/lufa.git \
"$tmk_core_path/protocol/lufa/lufa-abcminiuser"
rm -rf \
"$tmk_core_path/protocol/lufa/lufa-abcminiuser/.git" \
"$tmk_core_path/protocol/lufa/lufa-abcminiuser/.gitignore"
printf '%b%b::%b %bCLONE%b submodule usb host shield 2.0 and %bREMOVE%b .git files/folders\n' \
"$bold" "$blue" "$reset" "$bold" "$reset" "$bold" "$reset"
git clone \
git@github.com:tmk/USB_Host_Shield_2.0.git \
"$tmk_core_path/protocol/usb_hid/USB_Host_Shield_2.0-tmk"
rm -rf \
"$tmk_core_path/protocol/usb_hid/USB_Host_Shield_2.0-tmk/.git" \
"$tmk_core_path/protocol/usb_hid/USB_Host_Shield_2.0-tmk/.github" \
"$tmk_core_path/protocol/usb_hid/USB_Host_Shield_2.0-tmk/.gitattributes" \
"$tmk_core_path/protocol/usb_hid/USB_Host_Shield_2.0-tmk/.gitignore" \
"$tmk_core_path/protocol/usb_hid/USB_Host_Shield_2.0-tmk/.gitmodules"