You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
553 B
Bash
25 lines
553 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
echo "Building keymap"
|
|
docker build .
|
|
|
|
if [ -d out ]; then
|
|
echo "Removing old keymap files"
|
|
rm -rf out
|
|
fi
|
|
|
|
mkdir -p out
|
|
|
|
echo "Copying keymap files out of docker"
|
|
docker run -it \
|
|
--mount type=bind,source="$(pwd)/out",target=/out \
|
|
$(docker build . -q) \
|
|
bash -c 'cp ./out/* /out/'
|
|
|
|
if [ "$(cat /etc/hostname)" = "melete" ]; then
|
|
echo "Copying keymap files to thelxinoe"
|
|
ssh thelxinoe "mkdir -p ~/Downloads/corne_firmware && rm ~/Downloads/corne_firmware/*"
|
|
scp out/* thelxinoe:~/Downloads/corne_firmware/
|
|
fi
|