help-make
[Top][All Lists]
Advanced

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

Re: delete large list of files


From: Raleigh Rinehart
Subject: Re: delete large list of files
Date: Mon, 04 Apr 2011 16:00:58 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9

On 4/4/2011 3:35 PM, Eli Zaretskii wrote:
Date: Mon, 04 Apr 2011 14:45:14 -0500
From: Raleigh Rinehart<address@hidden>
# $(call rm-cmd,FILE_LIST,Chunk Size,rm options)
rm-cmd=$(strip $(eval __a :=)$(foreach w,$1,$(if $(filter $2,$(words
$(__a))),$(shell $(RM) $3 $(strip $(__a)) )$(eval __a:=))$(eval __a
+=$w))$(shell $(RM) $3 $(__a))
What is the value of "RM"?
Sorry, I should have included that in the original e-mail.

rm is defined as:

GNUTOOLS := c:\progra~1\GnuWin32
RM    := $(GNUTOOLS)\bin\rm.exe -f
Does it help to use forward slashes, both in GNUTOOLS and in RM?  You
may need to include $(RM) in quotes then, like this:


    $(shell "$(RM)" $3 $(__a))

Surprisingly that does seem to have done the trick (sans quotes).
Many thanks Eli!

-raleigh




reply via email to

[Prev in Thread] Current Thread [Next in Thread]