view lisp/hyperbole/file-newer @ 204:a15e4b3d59c6

Added tag r20-3b28 for changeset 850242ba4a81
author cvs
date Mon, 13 Aug 2007 10:02:23 +0200
parents 376386a54a3c
children
line wrap: on
line source

#!/usr/local/bin/perl
#file-newer: Return 1 if file 1 is newer than file 2, else 0

$cmp = (stat($ARGV[0]))[9] - (stat($ARGV[1]))[9];
if ($cmp > 0)
   { print "1"; }
else
   { print "0"; }