diff --git a/convert.sh b/convert.sh new file mode 100755 --- /dev/null +++ b/convert.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +for i in $(find Logos/SVG Flags/SVG -type f -not -name "Laurel_Wreath.svg"); do + new_pdf_filename=$(echo $i | sed 's/svg/pdf/g' | sed 's/SVG/PDF/g') + 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') + 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" -T + inkscape -f "$i" -e "$new_png_filename" -C -d 1200 +done diff --git a/svg2pdf.sh b/svg2pdf.sh deleted file mode 100755 --- a/svg2pdf.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -for i in $(find Logos/SVG -type f -not -name "Laurel_Wreath.svg"); do - new_pdf_filename=$(echo $i | sed 's/svg/pdf/g' | sed 's/SVG/PDF/g') - inkscape -f "$i" -A "$new_pdf_filename" -T --export-pdf-version=1.5 -C -d 1200 -done diff --git a/svg2plainsvg.sh b/svg2plainsvg.sh deleted file mode 100755 --- a/svg2plainsvg.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -for i in $(find Logos/SVG -type f -not -name "Laurel_Wreath.svg"); do - new_filename=$(echo $i | sed 's/SVG/PLAIN_SVG/g') - inkscape -f "$i" --export-plain-svg="$new_filename" -T -done diff --git a/svg2png.sh b/svg2png.sh deleted file mode 100755 --- a/svg2png.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -for i in $(find Logos/SVG -type f -not -name "Laurel_Wreath.svg"); do - new_filename=$(echo $i | sed 's/svg/png/g' | sed 's/SVG/PNG/g') - inkscape -f "$i" -e "$new_filename" -C -d 1200 -done