[RFA] Fix gdb snapshots
Tom Tromey
tom@tromey.com
Wed Nov 29 17:00:00 GMT 2017
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> As always, I am really not comfortable with using rm -rf in scripts.
You'll be disappointed by the current Makefile then :)
Simon> Since we know that the .deps directories will only contain files, can
Simon> we do something like this instead (not tested)?
Simon> rm -f $$i/$(DEPDIR)/*
Simon> rmdir $$i/$(DEPDIR)
The issue is that this rmdir will fail because, in this situation, the
directory does not exist at all.
Perhaps rmdir||true will be more to your liking.
Tom
More information about the Gdb-patches
mailing list