28 lines
595 B
Bash
Executable file
28 lines
595 B
Bash
Executable file
#!/bin/zsh
|
|
|
|
# PIECES
|
|
|
|
for set (cburnett mono pirouetti merida spatial alpha chess7 reillycraig fantasy shapes letter); do
|
|
|
|
from=public/piece-src/$set
|
|
to=public/piece/$set
|
|
echo $to
|
|
|
|
mkdir -p $to
|
|
mkdir -p $to/invert
|
|
|
|
for file ($from/*.svg); do
|
|
svgo -i $file -o $(echo $file | sed 's#/piece-src/#/piece/#')
|
|
done
|
|
# for file ($from/invert/*.svg); do
|
|
# svgcleaner-cli $file $(echo $file | sed 's#/piece-src/#/piece/#')
|
|
# done
|
|
|
|
done
|
|
|
|
# LOGO
|
|
|
|
for file (public/images/bN-bg.src.svg public/images/wN-bg.src.svg); do
|
|
svgo -i $file -o $(echo $file | sed 's#.src.svg#.svg#')
|
|
done
|