From 0b6ae33a4a5cb493d50f8647ba60146aae3d2c5b Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Fri, 1 Feb 2008 18:47:47 +0000 Subject: - Replace broken glob usage in gimp with on the fly generated gimp command --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4e8ad30..c8a98a8 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,15 @@ SVNSOFT=svn+ssh://svn.mandriva.com/svn/soft/theme/mandriva-theme/ SVNNAME=svn+ssh://svn.mandriva.com/svn/packages/cooker/mandriva-theme/current/ all: - GIMP2_DIRECTORY=`pwd`/gimp gimp --console-messages -i -d -b '(begin (gimp-normalize-to-bootsplash-dirs 1.0 "*" "bootsplash/data/*.png") (gimp-quit 1))' - GIMP2_DIRECTORY=`pwd`/gimp gimp --console-messages -i -d -b '(begin (gimp-normalize-to-bootsplash-dirs 1.0 "*" "gfxboot/*.png") (gimp-quit 1))' - + @/bin/cp -f gimp/scripts/gimp-normalize-to-bootsplash.scm tmp-gimp-command + @for i in */bootsplash/data/*.png */gfxboot/*.png ; do \ + echo \(gimp-normalize-to-bootsplash 1.0 \"$$i\" \"`dirname $$i`/`basename $$i .png`.jpg\"\) >> tmp-gimp-command; \ + done + @echo \(gimp-quit 1\) >> tmp-gimp-command + @cat tmp-gimp-command | gimp --console-messages -i -d -b - + @rm -f tmp-gimp-command +# GIMP2_DIRECTORY=`pwd`/gimp gimp --console-messages -i -d -b '(begin (gimp-normalize-to-bootsplash-dirs "1.0" "*" "bootsplash/data/*.png") (gimp-quit 1))' +# GIMP2_DIRECTORY=`pwd`/gimp gimp --console-messages -i -d -b '(begin (gimp-normalize-to-bootsplash-dirs "1.0" "*" "gfxboot/*.png") (gimp-quit 1))' install: mkdir -p $(prefix)$(sharedir)/bootsplash/themes/ mkdir -p $(prefix)$(configdir)/bootsplash/themes/ -- cgit v1.2.1