]> git.armaanb.net Git - logo.git/blobdiff - svg2img
Ignore the pregenerated logo when running svg2img
[logo.git] / svg2img
diff --git a/svg2img b/svg2img
index 44af51c90635242aefff8a33dce1f61ebca768cd..2dcf70e83263b2b503e7f809a27522a79268a381 100755 (executable)
--- a/svg2img
+++ b/svg2img
@@ -56,7 +56,8 @@ for arg in ${@};do
   
   [[ ${arg} == "svg" ]] && exit 0
   
-  [[ ${arg} == "png" ]] && find . -name *.png -exec rm -v {} \;
+  [[ ${arg} == "png" ]] && find . -name *.png -not -iwholename ./logo.png \
+    -exec rm -v {} \;
   
   if [[ (! -d "square/png" || ! -d "circle/png") || (${arg} == "png") ]]; then
     echo "Generating PNGs"
@@ -137,6 +138,6 @@ for arg in ${@};do
     while read PAT; do
       echo "Generating ${arg}s"
       convert -verbose ${PAT} ${PAT//png/${arg}}
-    done < <(find -name *.png)
+    done < <(find -name *.png -not -iwholename ./logo.png)
   done
 done