From f893e8a29f5a8fec3122ed60b72ab60fcc3e4078 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Mon, 4 May 2009 06:51:02 +0000 Subject: [PATCH] Add a crappy sed hack to silence gcc warnings, sigh, I wish ImageMagick would update convert already. Originally committed to SVN as r2898. --- aegisub/scripts/unix-gen-xpm.awk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aegisub/scripts/unix-gen-xpm.awk b/aegisub/scripts/unix-gen-xpm.awk index 6cb6ad865..62c0b161b 100644 --- a/aegisub/scripts/unix-gen-xpm.awk +++ b/aegisub/scripts/unix-gen-xpm.awk @@ -13,7 +13,9 @@ CONVERT ?= %s \n \ for (v in image) { printf("%s_xpm.xpm: %s\n", v, image[v]) - printf(" $(CONVERT) -transparent \"#c0c0c0\" %s %s_xpm.xpm\n\n", image[v], v) + printf(" $(CONVERT) -transparent \"#c0c0c0\" %s xpm:- \\\ + | sed \"2 s/^static char \\*xpm__\\[\\] =/const char \\*"v"_xpm\\[\\] =/\" \\\ + > %s_xpm.xpm\n\n", image[v], v) } printf("bmp2xpm:")