From d523dc47a383650f76ce08157989c6d6d9342f1b Mon Sep 17 00:00:00 2001 From: Bruno Coudoin Date: Sun, 30 Aug 2009 23:42:50 +0000 Subject: Better handling of svg2png --- (limited to 'Makefile.mingw.in') diff --git a/Makefile.mingw.in b/Makefile.mingw.in index fbe36f9..fd08a89 100644 --- a/Makefile.mingw.in +++ b/Makefile.mingw.in @@ -152,12 +152,15 @@ prep: Makefile.mingw find $(GCOMPRIS_INSTALL_DIR) -name "Makefile*" -exec rm -f {} \; find $(GCOMPRIS_INSTALL_DIR) -name "*.in" -exec rm -f {} \; find $(GCOMPRIS_INSTALL_DIR) -name "*~" -exec rm -f {} \; + @echo Remove svg files + find $(GCOMPRIS_INSTALL_DIR) -name "*.svg" exec rm -f {} \; svg2png: - sed -i "s:\(/[a-zA-Z_-]\+\\.\)svg:\1png:g" boards/*.xml.in - sed -i "s:\(/[a-zA-Z_-]\+\\.\)svg:\1png:g" src/*/*.c - sed -i "s:\(/[a-zA-Z_-]\+\\.\)svg:\1png:g" src/*/*/*.py + sed -i "s:\(/[a-zA-Z0-9_-]\+\\.\)svg:\1png:g" boards/*.xml.in + sed -i "s:\(/[a-zA-Z0-9_-]\+\\.\)svg:\1png:g" src/*/*.c + sed -i "s:\(/[a-zA-Z0-9_-]\+\\.\)svg:\1png:g" src/*/*/*.py for f in `find boards -name '*.svg'`; \ do e=`echo $$f | sed s/.svg/.png/`; \ inkscape -z -f $$f -e $$e; \ done + cd boards && make && cd .. -- cgit v0.9.1