From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: Tom Tromey <tom@tromey.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] Fix gdb snapshots
Date: Wed, 29 Nov 2017 17:00:00 -0000 [thread overview]
Message-ID: <87zi756mw4.fsf@tromey.com> (raw)
In-Reply-To: <8e2ede504e1aab0bc0cda57e10989bb2@polymtl.ca> (Simon Marchi's message of "Wed, 29 Nov 2017 11:41:42 -0500")
>>>>> "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
next prev parent reply other threads:[~2017-11-29 17:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 16:32 Tom Tromey
2017-11-29 16:42 ` Simon Marchi
2017-11-29 17:00 ` Tom Tromey [this message]
2017-11-29 17:04 ` Tom Tromey
2017-11-29 17:27 ` Tom Tromey
2017-11-29 17:38 ` Simon Marchi
2017-11-29 18:53 ` Tom Tromey
2017-11-29 17:06 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zi756mw4.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox