Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ulrich Mueller <ulm@g.o>
Subject: Re: Preserving mtimes for EAPI3
Date: Tue, 31 Mar 2009 06:54:20 +0200
>>>>> On Mon, 30 Mar 2009, ABCD  wrote:

> Personally, I would use

>     find "${D}" -type f \! -newermt "@${stamp1}" -exec \
>         touch -c -d "@${stamp1}" {} +

> and

>     find "${D}" -type f -newermt "@${stamp2}" -exec \
>         touch -c -d "@${stamp2}" {} +

> to avoid an unneeded call to xargs.

Right. And it can be done in one command:

   find "${D}" -type f \
     \( \! -newermt "@${stamp1}" -exec touch -c -d "@${stamp1}" {} + \
        -o -newermt "@${stamp2}" -exec touch -c -d "@${stamp2}" {} + \)

Ulrich


References:
Preserving mtimes for EAPI3
-- Marijn Schouten (hkBst)
Re: Preserving mtimes for EAPI3
-- Ulrich Mueller
Re: Preserving mtimes for EAPI3
-- Petteri Räty
Re: Preserving mtimes for EAPI3
-- Ulrich Mueller
Re: Preserving mtimes for EAPI3
-- ABCD
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Preserving mtimes for EAPI3
Next by thread:
Re: Preserving mtimes for EAPI3
Previous by date:
Re: Preserving mtimes for EAPI3
Next by date:
Re: Small change: Global USE flag nsplugin


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.