Subversion Repositories DevTools

Rev

Rev 2476 | Rev 2930 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2476 Rev 2650
Line 230... Line 230...
230
#		   Shell startup is slow under windows.
230
#		   Shell startup is slow under windows.
231
#		2) Paths use '/'. This is passed though to the utility
231
#		2) Paths use '/'. This is passed though to the utility
232
#
232
#
233
#	Macros
233
#	Macros
234
#	NiceName - convert a '\ ' pathname into an string with plain spaces
234
#	NiceName - convert a '\ ' pathname into an string with plain spaces
235
#		   convert a ' into '"'"' - this will mean that the shell gets
235
#		   Convert nasty characters into %nn to get past the shell
236
#		   involved, but its not very often
236
#		   Characters to convert are:
-
 
237
#		   	Percent(%)		- Its our escape lead-in
-
 
238
#						  Not sure make handles such file
-
 
239
#		   	singlequote(')		- It quotes our arguments
-
 
240
#		   	Ampersand(&)		- If found make uses shell
237
#
241
#
238
NiceName = $(subst ','"'"',$(subst \$(space),$(space),$1))
242
NiceName = $(subst \$(space), ,$(subst ',%27,$(subst &,%26,$(subst %,%25,$1))))
239
 
243
 
240
define CopyFile
244
define CopyFile
241
	$(AA_PRE)JatsFileUtil 'c0' '$1' '$(call NiceName,$2)' '$(call NiceName,$3)' '$4'
245
	$(AA_PRE)JatsFileUtil 'c0' '$1' '$(call NiceName,$2)' '$(call NiceName,$3)' '$4'
242
endef
246
endef
243
 
247