Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Coudoin <bruno.coudoin@free.fr>2009-08-30 23:42:50 (GMT)
committer Bruno Coudoin <bruno.coudoin@free.fr>2009-08-30 23:42:50 (GMT)
commitd523dc47a383650f76ce08157989c6d6d9342f1b (patch)
treea5549465b997e34216938c045e3b518fdfbad836
parent85ed78de6d1f144769bf9240e83ca6ca91197980 (diff)
Better handling of svg2png
-rw-r--r--Makefile.mingw.in9
1 files changed, 6 insertions, 3 deletions
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 ..