This repository has been archived on 2025-10-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
inter-font/docs/res/optimize.sh
2017-09-21 10:28:15 -07:00

14 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