intelligence-icons/tools/convert-svg.sh

20 lines
339 B
Bash

#!/usr/bin/bash
createsvg() {
local d
local svg
for d in ../ai/*.ai; do
svg=$(echo "$d" | sed 's/.ai/.svg/')
output=$(echo "$svg" | sed 's/...//' | sed 's/\.ai/.svg/')
echo "Convert AI to SVG $output ..."
inkscape --export-text-to-path -f "$d" -l "../$output"
done
}
if [ "$1" != "" ];then
cd $1
fi
createsvg