annotate lisp/hyperbole/file-newer @ 147:e186c2b7192d xemacs-20-2

Added tag r20-2p1 for changeset 2af401a6ecca
author cvs
date Mon, 13 Aug 2007 09:34:48 +0200
parents 376386a54a3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 #!/usr/local/bin/perl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 #file-newer: Return 1 if file 1 is newer than file 2, else 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 $cmp = (stat($ARGV[0]))[9] - (stat($ARGV[1]))[9];
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 if ($cmp > 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 { print "1"; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 { print "0"; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9