mirror of
https://github.com/rsms/inter.git
synced 2024-12-18 21:21:33 +03:00
15 lines
200 B
Bash
Executable File
15 lines
200 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
|
|
for f in *.svg; do
|
|
svgo --multipass -q "$f" &
|
|
done
|
|
|
|
for f in *.png; do
|
|
TMPNAME=.$f.tmp
|
|
(pngcrush -q "$f" "$TMPNAME" && mv -f "$TMPNAME" "$f") &
|
|
done
|
|
|
|
wait
|