updated draw function; build all now also draws
This commit is contained in:
parent
c6901938e3
commit
e3ab6598e9
1 changed files with 5 additions and 1 deletions
6
Justfile
6
Justfile
|
@ -67,6 +67,7 @@ build expr *west_args: _parse_combos
|
||||||
echo "$targets" | while IFS=, read -r board shield snippet; do
|
echo "$targets" | while IFS=, read -r board shield snippet; do
|
||||||
just _build_single "$board" "$shield" "$snippet" {{ west_args }}
|
just _build_single "$board" "$shield" "$snippet" {{ west_args }}
|
||||||
done
|
done
|
||||||
|
just draw
|
||||||
|
|
||||||
# clear build cache and artifacts
|
# clear build cache and artifacts
|
||||||
clean:
|
clean:
|
||||||
|
@ -84,10 +85,13 @@ clean-nix:
|
||||||
draw:
|
draw:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
echo "Parsing keymap..."
|
||||||
keymap -c "{{ draw }}/config.yaml" parse -z "{{ config }}/corne.keymap" >"{{ draw }}/base.yaml"
|
keymap -c "{{ draw }}/config.yaml" parse -z "{{ config }}/corne.keymap" >"{{ draw }}/base.yaml"
|
||||||
|
echo "Drawing vector graphics..."
|
||||||
keymap -c "{{ draw }}/config.yaml" draw "{{ draw }}/base.yaml" >"{{ draw }}/base.svg"
|
keymap -c "{{ draw }}/config.yaml" draw "{{ draw }}/base.yaml" >"{{ draw }}/base.svg"
|
||||||
# put inkscape command here
|
# put inkscape command here
|
||||||
inkscape --export-type png --export-filename {{ draw }}/keymap.png --export-dpi 300 --export-background=gray {{ draw }}/base.svg
|
echo "Converting to png..."
|
||||||
|
inkscape --export-type png --export-filename {{ draw }}/keymap.png --export-dpi 300 --export-background=gray {{ draw }}/base.svg > /dev/null 2>&1
|
||||||
|
|
||||||
# initialize west
|
# initialize west
|
||||||
init:
|
init:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue