This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ada, build] Ignore cp -p failures during Ada make install
- From: Mike Stump <mikestump at comcast dot net>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org, Arnaud Charlet <charlet at adacore dot com>, Paolo Bonzini <bonzini at gnu dot org>
- Date: Fri, 25 Apr 2014 10:22:16 -0700
- Subject: Re: [ada, build] Ignore cp -p failures during Ada make install
- Authentication-results: sourceware.org; auth=none
- References: <yddsip1y1ac dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <297CE3FB-6D47-4D40-A582-9FD99D4AA2BE at comcast dot net> <ydd4n1h5omy dot fsf at CeBiTec dot Uni-Bielefeld dot DE> <FED62B33-CE0A-4DEC-B218-200AD3B77560 at comcast dot net> <yddzjj949kf dot fsf at CeBiTec dot Uni-Bielefeld dot DE>
On Apr 25, 2014, at 10:12 AM, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> wrote:
>> What about cp a b && touch -r a b? Seems safer, seem portable enough.
>
> I don't see why this shouldn't work.
It won’t work on a machine from 1982… Honest. Life goes on, oh well… cp a b && { touch -r a b || true; } is the portable version, if you want. :-)