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

[XaraXtreme-dev] Resources with spaces in the file names



Alex,

Will this patch modify the resource script so that it doesn't choke on filenames with spaces? I need to change the filename of the defautl template to '800 by 600 drawing.xar' to replicate the template menu in Camelot.

   Luke
Index: ../wxOil/Makefile.am
===================================================================
--- ../wxOil/Makefile.am	(revision 1154)
+++ ../wxOil/Makefile.am	(working copy)
@@ -63,7 +63,7 @@
 xrcmake := ${shell echo Testing for new resources... 1>&2 ; \
 	if( test ! -d xrc ) ; then mkdir xrc; fi; \
 	( find $(TOPDIR)/wxOil/xrc/$(XARALANGUAGE) -maxdepth 1 -name '*.xrc' ; find $(TOPDIR)/wxOil/xrc -maxdepth 1 -name '*.png' -or -name '*.ico' -or -name '*.cur' -or -name '*.bmp' -or -name '*.res' -or -name '*.xar' ) | \
-	perl -e 'while(<>) {chomp; s/\r//; push @F, $$_}; printf "xrc/dialogs.xrc xrc/strings.xrc xrc/strings.lst xrc/xaralx.po: xrc/xrc.stamp %s\n",join (" ",sort @F);' > xrc/xrc.d.$$$$ ; \
+	perl -e 'while(<>) {chomp; s/\r//; s/ /\\ /g; push @F, $$_}; printf "xrc/dialogs.xrc xrc/strings.xrc xrc/strings.lst xrc/xaralx.po: xrc/xrc.stamp %s\n",join (" ",sort @F);' > xrc/xrc.d.$$$$ ; \
 	if ( ! ( cmp -s xrc/xrc.d.$$$$ xrc/xrc.d) ) ; then touch xrc/xrc.stamp ; mv xrc/xrc.d.$$$$ xrc/xrc.d ; echo Found new resources 1>&2 ; \
 	else rm -f xrc/xrc.d.$$$$; fi ; \
 	if ! [ -e xrc/xrc.stamp ] ; then touch xrc/xrc.stamp ; fi }