OpenSSL: fix bulid on older library versions
[exim.git] / src / scripts / newer
CommitLineData
61ec970d 1#! /bin/sh
61ec970d
PH
2
3# Script to determine whether the first file is newer than the second.
4# If the first does not exist, the answer is "no";
5# if the second does not exist, the answer is "yes";
6# otherwise their ages are compared using "find".
7
8if [ $# -ne 2 ]; then
9 echo "*** Two file names needed for 'newer' ***"
10 exit 2;
11fi
12
13if [ ! -f $1 ]; then exit 1; fi
14if [ ! -f $2 ]; then exit 0; fi
15
16case `find $1 -newer $2 -print` in
17'') exit 1;;
18*) exit 0;;
19esac
20
21# End