digiamp for review + append script
This commit is contained in:
parent
552ad553d4
commit
3933d59867
24
draft/append.sh
Executable file
24
draft/append.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
draftmd="../draft/overlay"
|
||||
draftpng="../draft/boards"
|
||||
dirmd="../src/en/overlay"
|
||||
dirpng="../resources/boards"
|
||||
tmpmd="$dirmd/template.md"
|
||||
tmppng="$dirpng/template.png"
|
||||
yamlfile="../src/en/settings.yaml"
|
||||
mdlist=$(ls "$draftmd")
|
||||
|
||||
cp -R $draftmd/* $dirmd && rm $tmpmd
|
||||
cp -R $draftpng/* $dirpng && rm $tmppng
|
||||
|
||||
for overlay in $mdlist; do
|
||||
if [ $overlay != "template.md" ]; then
|
||||
board=$(echo "$overlay" | rev | cut -c 4- | rev)
|
||||
if ! grep -e $board $yamlfile &> /dev/null; then
|
||||
echo "- $board" | tee -a $yamlfile &> /dev/null
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
BIN
draft/boards/iqaudio-pi-digiamp.png
Normal file
BIN
draft/boards/iqaudio-pi-digiamp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
Loading…
Reference in New Issue
Block a user