Skip to content

Commit 0e79847

Browse files
committed
Removing all symlinks to simplify Windows builds
- Symlinks just end up hurting in the end - Also moved non-ic keyboard build scripts to Others - Removed MD1, MD1.1 and MDErgo1 as those links haven't been used in a long time
1 parent 49a21d7 commit 0e79847

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

28 files changed

+737
-77
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ env:
2121
# Keyboard Tests
2222
- DIR=Keyboards SCRIPT=ic_keyboards.bash # Input Club Keyboards
2323
- DIR=Keyboards SCRIPT=ic_keyboards.bash EnableHostOnlyBuild=true HostTest=kll.py # Input Club Keyboards - Host-Side Build
24-
- DIR=Keyboards SCRIPT=others.bash
24+
25+
# Misc Keyboard Tests
26+
- DIR=Keyboards/Others SCRIPT=others.bash
2527

2628
# Debug Build Tests
2729
- DIR=Keyboards/Testing SCRIPT=all_tests.bash

Dockerfiles/Dockerfile

Lines changed: 0 additions & 35 deletions
This file was deleted.

Dockerfiles/Dockerfile.ubuntu

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dockerfiles/Dockerfile.ubuntu

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM ubuntu:bionic
2+
3+
RUN apt-get update && \
4+
apt-get install -qy locales
5+
6+
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
7+
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
8+
ENV LANG en_US.UTF-8
9+
ENV LC_ALL en_US.UTF-8
10+
ENV LANGUAGE en_US:en
11+
RUN locale-gen
12+
13+
RUN apt-get install -qy git cmake ctags tmux libusb-1.0-0-dev binutils-arm-none-eabi lsb-core \
14+
gcc-arm-none-eabi libnewlib-arm-none-eabi dfu-util python3 python3-pil git ninja-build python3-pip && \
15+
rm -rf /var/lib/apt/lists/* && \
16+
pip3 install pipenv kll
17+
18+
VOLUME /controller
19+
WORKDIR /controller/Keyboards
20+
CMD /bin/bash
21+
22+
# 1. Build the image after the initial cloning of this repo
23+
# docker build -t controller .. # notice the dots at the end
24+
# cd ..
25+
26+
# 2. Run the image from within the repository root
27+
# docker run -it --rm -v "$(pwd):/controller" controller
28+
29+
# 3. Build the firmware
30+
# ./ergodox.bash
31+
32+
# 4. Exit the container and load the firmware
33+
# a. exit
34+
# b. cd ./Keyboards/ICED-L.gcc/
35+
# c. ./load

Dockerfiles/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ To generate the environment, only need to do this once, or whenever you update t
5050

5151
```bash
5252
cd controller/Dockerfiles
53-
docker build -t controller .
53+
docker build -f Dockerfile.ubuntu -t controller.ubuntu .
5454
cd ..
5555
```
5656

5757
To enter the build environment.
5858
```bash
59-
docker run -it --rm -v "$(pwd):/controller" controller
59+
docker run -it --rm -v "$(pwd):/controller" controller.ubuntu
6060
```
6161

6262
To exit the docker environment.

Keyboards/k-type.p2.bash renamed to Keyboards/Others/k-type.p2.bash

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ Compiler="gcc"
6363
# Shouldn't need to touch this section
6464

6565
# Check if the library can be found
66-
if [ ! -f "${BASH_SOURCE%/*}/cmake.bash" ]; then
66+
if [ ! -f "${BASH_SOURCE%/*}/../cmake.bash" ]; then
6767
echo "ERROR: Cannot find 'cmake.bash'"
6868
exit 1
6969
fi
7070

71+
# Override CMakeLists path
72+
CMakeListsPath="../../.."
73+
7174
# Load the library
72-
source "${BASH_SOURCE%/*}/cmake.bash"
75+
source "${BASH_SOURCE%/*}/../cmake.bash"
7376

Keyboards/k-type.p3.bash renamed to Keyboards/Others/k-type.p3.bash

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ Compiler="gcc"
6363
# Shouldn't need to touch this section
6464

6565
# Check if the library can be found
66-
if [ ! -f "${BASH_SOURCE%/*}/cmake.bash" ]; then
66+
if [ ! -f "${BASH_SOURCE%/*}/../cmake.bash" ]; then
6767
echo "ERROR: Cannot find 'cmake.bash'"
6868
exit 1
6969
fi
7070

71+
# Override CMakeLists path
72+
CMakeListsPath="../../.."
73+
7174
# Load the library
72-
source "${BASH_SOURCE%/*}/cmake.bash"
75+
source "${BASH_SOURCE%/*}/../cmake.bash"
7376

Keyboards/others.bash renamed to Keyboards/Others/others.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# Shouldn't need to touch this section
1313

1414
# Check if the library can be found
15-
if [ ! -f common.bash ]; then
15+
if [ ! -f "${BASH_SOURCE%/*}/../common.bash" ]; then
1616
echo "ERROR: Cannot find 'common.bash'"
1717
exit 1
1818
fi
1919

2020
# Load common functions
21-
source "common.bash"
21+
source "${BASH_SOURCE%/*}/../common.bash"
2222

2323

2424

Keyboards/ps2_converter.bash renamed to Keyboards/Others/ps2_converter.bash

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ Compiler="gcc"
6060
# Shouldn't need to touch this section
6161

6262
# Check if the library can be found
63-
if [ ! -f "${BASH_SOURCE%/*}/cmake.bash" ]; then
63+
if [ ! -f "${BASH_SOURCE%/*}/../cmake.bash" ]; then
6464
echo "ERROR: Cannot find 'cmake.bash'"
6565
exit 1
6666
fi
6767

68+
# Override CMakeLists path
69+
CMakeListsPath="../../.."
70+
6871
# Load the library
69-
source "${BASH_SOURCE%/*}/cmake.bash"
72+
source "${BASH_SOURCE%/*}/../cmake.bash"
7073

Keyboards/template.bash renamed to Keyboards/Others/template.bash

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,14 @@ Compiler="gcc"
6565
# Shouldn't need to touch this section
6666

6767
# Check if the library can be found
68-
if [ ! -f "${BASH_SOURCE%/*}/cmake.bash" ]; then
68+
if [ ! -f "${BASH_SOURCE%/*}/../cmake.bash" ]; then
6969
echo "ERROR: Cannot find 'cmake.bash'"
7070
exit 1
7171
fi
7272

73+
# Override CMakeLists path
74+
CMakeListsPath="../../.."
75+
7376
# Load the library
74-
source "${BASH_SOURCE%/*}/cmake.bash"
77+
source "${BASH_SOURCE%/*}/../cmake.bash"
7578

Keyboards/infinity.alphabet.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

Keyboards/infinity.alphabet.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/infinity.bash

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88

99

1010
# Default to Alphabet
11-
Layout=$(basename $0 | cut -d'.' -f2)
12-
if [ "${Layout}" = "bash" ]; then
13-
Layout=alphabet
14-
fi
11+
Layout=${Layout:-alphabet}
1512

1613

1714
# VID:PID Mapping

Keyboards/infinity.hacker.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

Keyboards/infinity.hacker.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/infinity.standard.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

Keyboards/infinity.standard.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/infinity_led.alphabet.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

Keyboards/infinity_led.alphabet.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/infinity_led.bash

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88

99

1010
# Default to Alphabet
11-
Layout=$(basename $0 | cut -d'.' -f2)
12-
if [ "${Layout}" = "bash" ]; then
13-
Layout=alphabet
14-
fi
11+
Layout=${Layout:-alphabet}
1512

1613

1714
# VID:PID Mapping

Keyboards/infinity_led.hacker.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

Keyboards/infinity_led.hacker.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/infinity_led.standard.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

Keyboards/infinity_led.standard.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/whitefox.aria.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

Keyboards/whitefox.aria.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/whitefox.bash

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88

99
# Default to TrueFox
10-
Layout=$(basename $0 | cut -d'.' -f2)
11-
if [ "${Layout}" = "bash" ]; then
12-
Layout=truefox
13-
fi
10+
Layout=${Layout:-truefox}
1411

1512

1613
# VID:PID Mapping

Keyboards/whitefox.iso.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

Keyboards/whitefox.iso.bash

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/whitefox.jackofalltrades.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
# Uses filename to determine which build script to use
3+
# Jacob Alexander 2018
4+
5+
Basename=$(basename $0)
6+
7+
# Extract layout
8+
Layout=$(echo $Basename | cut -d'.' -f2)
9+
10+
# Extract build script
11+
BuildScript=$(echo $Basename | cut -d'.' -f1).bash
12+
13+
# Run build
14+
source "${BASH_SOURCE%/*}/${BuildScript}"
15+

Keyboards/whitefox.truefox.bash

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)