beremiz
Clone
Summary
Browse
Changes
Graph
fix rounding milliseconds from nanoseconds
2018-01-12, Surkov Sergey
cded8d8a0485
file is
Executable
fix rounding milliseconds from nanoseconds
example:rounding 299999 ns to 300ms, if division result is an
integer, remainder will be lost, and result will be 299.
#!/bin/bash
INKSCAPE=inkscape
for i in `cat icons.svg |grep -o -e '%%[^%]*%%'|sed 's/%//g'`
do
if [ $i.png -nt icons.svg ]; then
echo "Skip $i"
else
rm -f $i.png
echo "$INKSCAPE" icons.svg -z -e $i.png -i $i
"$INKSCAPE" icons.svg -z -e $i.png -i $i
fi
done
cp ico24.png brz.png
convert ico*.png brz.ico
rm -f ico*.png