From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JWARa-00023i-8o for garchives@archives.gentoo.org; Mon, 03 Mar 2008 13:11:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADF1CE0665; Mon, 3 Mar 2008 13:11:00 +0000 (UTC) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by pigeon.gentoo.org (Postfix) with ESMTP id 6677AE0665 for ; Mon, 3 Mar 2008 13:11:00 +0000 (UTC) Received: by ug-out-1314.google.com with SMTP id j3so1725964ugf.49 for ; Mon, 03 Mar 2008 05:10:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=7WtPKzdIqp4+DT4RPXc4XnDZ91Bt+OW3Aw6vLFEvf+M=; b=a83FP9EelPEnReH21VIZsh+D64eyfOGyJWi7HQ9R1l6FpcSqDukbVyjJBnYbwE3/7fWKUwVt2rAmm6WGdGMuje9MZjdH5ImIDDrn3PwMXErCHQl6b5KgVdS/3g2Nl0moF8q5NVOXL8OULMJmt0XJl1AoYNVkSkMCMeMABIwg7zs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=qjYt18RioW9YBkeLsmD/rSwPPldwaN/bE4glGIuPutfMPmf8RfuUPufZurVa5cIKrcJzitWc7999d2wduN9pit4d2oScGcyt2YFHJsizhpareS96EKVExKT85oyxCkTCegf+utg590IhNaz9cvcLy+I2/Z8OCtYB/97Wwv2ZB/g= Received: by 10.78.201.8 with SMTP id y8mr18850945huf.18.1204549859319; Mon, 03 Mar 2008 05:10:59 -0800 (PST) Received: from ?192.168.0.46? ( [87.227.44.92]) by mx.google.com with ESMTPS id g11sm1920gve.6.2008.03.03.05.10.56 (version=SSLv3 cipher=RC4-MD5); Mon, 03 Mar 2008 05:10:58 -0800 (PST) Message-ID: <47CBF955.3080305@gmail.com> Date: Mon, 03 Mar 2008 14:12:53 +0100 From: Erik User-Agent: Thunderbird 2.0.0.9 (X11/20071124) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Set a property on a file and have it remove when the file is modified? References: <47C94EB4.1060803@gmail.com> <50ba04d20803010838t55713774ge9ed320cfac5386e@mail.gmail.com> <47C9891E.9010902@gmail.com> <20080303062551.28c2f6d7@ilievnet.com> In-Reply-To: <20080303062551.28c2f6d7@ilievnet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 0b306df0-5ce8-4cf3-bc28-8a0452d7bcce X-Archives-Hash: 19aa91e730e6b016bcb1c69a1b3daa10 Daniel Iliev skrev: > Actually, if there are no other concerns, you'd have to keep only one > file for reference. Then you could compare the modification times of all > other files with this reference file. > Good idea! I implemented it and it reduced the number of cache files/directories in the tree from 633 to 26. The only drawback is that if the script is interrupted whilst checking a sequence of files with equal mtime, it will have to start over with that sequence the next time it is executed. (Files often get the same mtime if they are edited in an IDE and then all saved when executing the build command.) But reducing the number of cache files is worth that minor inconvenience. In case anyone is curious, the script is here: http://widelands.svn.sourceforge.net/viewvc/*checkout*/widelands/trunk/utils/spurious_source_code/detect -- gentoo-user@lists.gentoo.org mailing list