[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: install-sh -C
From: |
Stepan Kasal |
Subject: |
Re: install-sh -C |
Date: |
Wed, 25 Oct 2006 18:04:45 +0200 |
User-agent: |
Mutt/1.4.2.1i |
Hello,
On Wed, Oct 25, 2006 at 05:35:31PM +0200, Akim Demaille wrote:
> > find stampfile -newer $file
indeed, according to the documentation, the predicate is true if
stampfile is strictly newer than $file. So the implementation would
have to be something like:
# is_younger FILE FILES
# ---------------------
# Check that FILE is younger than all the FILES.
#
is_younger ()
{
a_status=0
a_file=$1
shift
for a_f in "$@"
do
a_list=`find "$a_file" -newer "$a_f"`
if test x"$a_list" != x"$a_file"; then
a_status=1; break
else :
fi
done
return $a_status
}
Have a nice day,
Stepan
- install-sh -C, Akim Demaille, 2006/10/22
- Re: install-sh -C, Ralf Wildenhues, 2006/10/22
- Re: install-sh -C, Akim Demaille, 2006/10/22
- Re: install-sh -C, Ralf Wildenhues, 2006/10/22
- Re: install-sh -C, Akim Demaille, 2006/10/23
- Re: install-sh -C, Ralf Wildenhues, 2006/10/23
- Re: install-sh -C, Ralf Wildenhues, 2006/10/23
- Re: install-sh -C, Akim Demaille, 2006/10/25
- Re: install-sh -C,
Stepan Kasal <=
- Re: install-sh -C, Akim Demaille, 2006/10/27
- set -e glitches (was: install-sh -C), Ralf Wildenhues, 2006/10/26