Subversion Repositories DevTools

Rev

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

Rev 2074 Rev 2076
Line 168... Line 168...
168
define	JatsRunTime
168
define	JatsRunTime
169
    $(GBE_PERL) -Mjats_runtime -e
169
    $(GBE_PERL) -Mjats_runtime -e
170
endef
170
endef
171
 
171
 
172
#.. Remove files contained within the specified list
172
#.. Remove files contained within the specified list
-
 
173
#   Used internally to delete generated files
173
#
174
#
174
#   Usage:      $(call RmFiles,VARIABLE_NAME)
175
#   Usage:      $(call RmFiles,VARIABLE_NAME)
175
#
176
#
176
define RmFiles
177
define RmFiles
177
	$(AA_PRE)(if [ "$(GBE_VERBOSE)" -gt 0 ]; then \
178
	$(AA_PRE)JatsFileUtil 'r0' $($1)
178
		echo Removing $($(1)); fi; \
-
 
179
	CHOWNS=; \
-
 
180
	RMS=; \
-
 
181
	for file in $($(1)); do \
-
 
182
		if [ -f $$file -o -h $$file ]; then \
-
 
183
			if [ ! -w $$file ]; then \
-
 
184
				CHOWNS="$$CHOWNS $$file"; \
-
 
185
			fi; \
-
 
186
			RMS="$$RMS $$file"; \
-
 
187
		fi; \
-
 
188
	done; \
-
 
189
	if [ -n "$$RMS" ]; then \
-
 
190
		if [ -n "$$CHOWNS" ]; then \
-
 
191
			$(chmod) -f +w $$CHOWNS; \
-
 
192
		fi; \
-
 
193
		$(rm) -f $$RMS; \
-
 
194
	fi);
-
 
195
endef
179
endef
196
 
180
 
197
#.. Install/uninstall the specified file
181
#.. Install/uninstall the specified file
198
#
182
#
199
#   Usage:      $(call InstallFile,dest,file,fmode)
183
#   Usage:      $(call InstallFile,dest,file,fmode)
Line 249... Line 233...
249
#	NiceName - convert a '\ ' pathname into an string with plain spaces
233
#	NiceName - convert a '\ ' pathname into an string with plain spaces
250
#
234
#
251
NiceName = $(subst \$(space),$(space),$1)
235
NiceName = $(subst \$(space),$(space),$1)
252
 
236
 
253
define CopyFile
237
define CopyFile
254
	$(AA_PRE)CopyFile 'c0' '$1' '$(call NiceName,$2)' '$(call NiceName,$3)' '$4'
238
	$(AA_PRE)JatsFileUtil 'c0' '$1' '$(call NiceName,$2)' '$(call NiceName,$3)' '$4'
255
endef
239
endef
256
 
240
 
257
define UncopyFile
241
define UncopyFile
258
	$(AA_PRE)CopyFile 'd0' '$1' '$(call NiceName,$2)'
242
	$(AA_PRE)JatsFileUtil 'd0' '$1' '$(call NiceName,$2)'
259
endef
243
endef
260
 
244
 
261
##
245
##