comparison lisp/hyperbole/file-newer @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:376386a54a3c
1 #!/usr/local/bin/perl
2 #file-newer: Return 1 if file 1 is newer than file 2, else 0
3
4 $cmp = (stat($ARGV[0]))[9] - (stat($ARGV[1]))[9];
5 if ($cmp > 0)
6 { print "1"; }
7 else
8 { print "0"; }
9