summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2008-02-01 18:47:47 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2008-02-01 18:47:47 +0000
commit0b6ae33a4a5cb493d50f8647ba60146aae3d2c5b (patch)
tree0f2f7fc1526b75d5fc03f35fe5e86dcb17741629
parentbe76dd9ead33f0541a8a7b7e0e129496a8358eac (diff)
downloadtheme-0b6ae33a4a5cb493d50f8647ba60146aae3d2c5b.tar
theme-0b6ae33a4a5cb493d50f8647ba60146aae3d2c5b.tar.gz
theme-0b6ae33a4a5cb493d50f8647ba60146aae3d2c5b.tar.bz2
theme-0b6ae33a4a5cb493d50f8647ba60146aae3d2c5b.tar.xz
theme-0b6ae33a4a5cb493d50f8647ba60146aae3d2c5b.zip
- Replace broken glob usage in gimp with on the fly generated gimp command
-rw-r--r--Makefile12
1 files 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/