Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Preserving mtimes for EAPI3
Date: Tue, 31 Mar 2009 04:54:23
Message-Id: 18897.41468.854305.667202@a1ihome1.kph.uni-mainz.de
In Reply to: [gentoo-dev] Re: Preserving mtimes for EAPI3 by ABCD
1 >>>>> On Mon, 30 Mar 2009, ABCD wrote:
2
3 > Personally, I would use
4
5 > find "${D}" -type f \! -newermt "@${stamp1}" -exec \
6 > touch -c -d "@${stamp1}" {} +
7
8 > and
9
10 > find "${D}" -type f -newermt "@${stamp2}" -exec \
11 > touch -c -d "@${stamp2}" {} +
12
13 > to avoid an unneeded call to xargs.
14
15 Right. And it can be done in one command:
16
17 find "${D}" -type f \
18 \( \! -newermt "@${stamp1}" -exec touch -c -d "@${stamp1}" {} + \
19 -o -newermt "@${stamp2}" -exec touch -c -d "@${stamp2}" {} + \)
20
21 Ulrich