Subversion Repositories DevTools

Rev

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

Rev 257 Rev 261
Line 101... Line 101...
101
endef
101
endef
102
endif
102
endif
103
 
103
 
104
#
104
#
105
###############################################################################
105
###############################################################################
106
# Verbose versions of specific commands
-
 
107
###############################################################################
-
 
108
#
-
 
109
 
-
 
110
ifdef VERBOSE
-
 
111
GBE_RM		=$(rm)
-
 
112
GBE_RMDIR	=$(rmdir)
-
 
113
else
-
 
114
GBE_RM		=@$(rm)
-
 
115
GBE_RMDIR	=@$(rmdir)
-
 
116
endif
-
 
117
 
-
 
118
#
-
 
119
###############################################################################
-
 
120
# Support macros
106
# Support macros
121
###############################################################################
107
###############################################################################
122
#
108
#
123
 
109
 
124
#.. Remove files contained within the specified list
110
#.. Remove files contained within the specified list
125
#
111
#
126
#   Usage:      $(call RmFiles,VARIABLE_NAME)
112
#   Usage:      $(call RmFiles,VARIABLE_NAME)
127
#
113
#
128
define RmFiles
114
define RmFiles
129
	@(if [ "$(GBE_VERBOSE)" -gt 0 ]; then \
115
	$(AA_PRE)(if [ "$(GBE_VERBOSE)" -gt 0 ]; then \
130
		echo Removing $($(1)); fi; \
116
		echo Removing $($(1)); fi; \
131
	CHOWNS=; \
117
	CHOWNS=; \
132
	RMS=; \
118
	RMS=; \
133
	for file in $($(1)); do \
119
	for file in $($(1)); do \
134
		if [ -f $$file -o -h $$file ]; then \
120
		if [ -f $$file -o -h $$file ]; then \
Line 210... Line 196...
210
#
196
#
211
AbsName = $(subst $$,\$$,$(subst $(spacealt),$(space),$(abspath $(subst \$(space),$(spacealt),$1))))
197
AbsName = $(subst $$,\$$,$(subst $(spacealt),$(space),$(abspath $(subst \$(space),$(spacealt),$1))))
212
NiceName = $(subst $$,\$$,$(subst \$(space),$(space),$1))
198
NiceName = $(subst $$,\$$,$(subst \$(space),$(space),$1))
213
 
199
 
214
define CopyFile
200
define CopyFile
215
	(\
201
	$(AA_PRE)(\
216
        udest="$(call NiceName,$2)"; \
202
        udest="$(call NiceName,$2)"; \
217
        dest="$(call AbsName,$2)"; \
203
        dest="$(call AbsName,$2)"; \
218
        file="$(call NiceName,$3)"; \
204
        file="$(call NiceName,$3)"; \
219
        path="$(call AbsName,$4)"; \
205
        path="$(call AbsName,$4)"; \
220
        fmode="$(5)"; \
206
        fmode="$(5)"; \