[gcompris] Better handling of svg2png



commit d523dc47a383650f76ce08157989c6d6d9342f1b
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Mon Aug 31 01:42:50 2009 +0200

    Better handling of svg2png

 Makefile.mingw.in |    9 ++++++---
 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 ..



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]