Subversion Repositories DevTools

Rev

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

Rev 2312 Rev 2476
Line 225... Line 225...
225
#
225
#
226
#	Implementation note:
226
#	Implementation note:
227
#		1) Do not get the shell involved in invoking the command
227
#		1) Do not get the shell involved in invoking the command
228
#	           Quote args in '' not "" as "" will trigger shell usage
228
#	           Quote args in '' not "" as "" will trigger shell usage
229
#		   This is good as we don't need/want shell expansion either
229
#		   This is good as we don't need/want shell expansion either
-
 
230
#		   Shell startup is slow under windows.
230
#		2) Paths use '/'. This is passed though to the utility
231
#		2) Paths use '/'. This is passed though to the utility
231
#
232
#
232
#	Macros
233
#	Macros
233
#	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
-
 
236
#		   involved, but its not very often
234
#
237
#
235
NiceName = $(subst \$(space),$(space),$1)
238
NiceName = $(subst ','"'"',$(subst \$(space),$(space),$1))
236
 
239
 
237
define CopyFile
240
define CopyFile
238
	$(AA_PRE)JatsFileUtil 'c0' '$1' '$(call NiceName,$2)' '$(call NiceName,$3)' '$4'
241
	$(AA_PRE)JatsFileUtil 'c0' '$1' '$(call NiceName,$2)' '$(call NiceName,$3)' '$4'
239
endef
242
endef
240
 
243