]> git.armaanb.net Git - logo.git/blobdiff - imgconvert
Recreate logo as simple SVG and convert to bitmap
[logo.git] / imgconvert
diff --git a/imgconvert b/imgconvert
new file mode 100755 (executable)
index 0000000..8521d0f
--- /dev/null
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+rm -rf ${2}
+
+for PAT in $(find ${1} -type d); do
+  mkdir $(echo $PAT | sed "s/${1}/${2}/g")
+done
+
+for PAT in $(find ${1} -type f); do
+  BASE=$(echo $PAT | sed "s/${1}/${2}/g")
+  convert $PAT $BASE
+done