This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] Make build tree rm -rf'able again
- From: Andreas Schwab <schwab at suse dot de>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 13 Nov 2013 10:02:44 +0100
- Subject: Re: [commit] Make build tree rm -rf'able again
- Authentication-results: sourceware.org; auth=none
- References: <yjt2ppq5s0us dot fsf at ruffy dot mtv dot corp dot google dot com>
Doug Evans <dje@google.com> writes:
> +# Make dir2 writable again so rm -rf of a build tree Just Works.
> +if {[file exists $dir2] && ![file writable $dir2]} {
> + system "chmod +w $dir2"
No need to shell out, you can do that with file attributes -permissions.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."