# HG changeset patch # User Dennis Fink # Date 2020-04-04 23:09:00 # Node ID a2732ecf58445d750f3785a40c1251c5afada18a # Parent de08a90707eca1f10c5a1a3cca5e070245896fb5 Create only needed directories diff --git a/convert.sh b/convert.sh --- a/convert.sh +++ b/convert.sh @@ -5,13 +5,15 @@ for i in $(find $1/SVG -type f -not -nam new_plain_svg_filename=$(echo $i | sed 's/SVG/PLAIN_SVG/g') new_png_filename=$(echo $i | sed 's/svg/png/g' | sed 's/SVG/PNG/g') new_eps_filename=$(echo $i | sed 's/svg/eps/g' | sed 's/SVG/EPS/g') - mkdir -p $(dirname ${new_pdf_filename}) $(dirname ${new_plain_svg_filename}) $(dirname ${new_png_filename}) $(dirname ${new_eps_filename}) if [[ "$1" =~ "entr0py" ]]; then + mkdir -p $(dirname ${new_png_filename}) inkscape -f "$i" -e "$new_png_filename" -C -w 1920 -h 1080 elif [[ "$1" =~ "Videos" ]]; then + mkdir -p $(dirname ${new_png_filename}) inkscape -f "$i" -e "$new_png_filename" -C -w 1920 -h 1080 else + mkdir -p $(dirname ${new_pdf_filename}) $(dirname ${new_plain_svg_filename}) $(dirname ${new_png_filename}) $(dirname ${new_eps_filename}) inkscape -f "$i" -A "$new_pdf_filename" -T --export-pdf-version=1.5 -C -d 1200 inkscape -f "$i" --export-plain-svg="$new_plain_svg_filename" --export-text-to-path --vacuum-defs inkscape -f "$i" -e "$new_png_filename" -C -d 1200