Use test(1) operators and test for the catpage not being older than the
manpage. Identical mtimes (as generated by buildworld for these files) precluded catpages from working. Approved by: gordon
This commit is contained in:
parent
64c19cf589
commit
6a3a026ee3
@ -200,8 +200,8 @@ find_file() {
|
||||
# Usage: is_newer file1 file2
|
||||
# Returns true if file1 is newer than file2 as calculated by mtime.
|
||||
is_newer() {
|
||||
if [ $(stat -f %m $1) -gt $(stat -f %m $2) ]; then
|
||||
decho " mtime: $1 newer than $2" 3
|
||||
if ! [ "$1" -ot "$2" ]; then
|
||||
decho " mtime: $1 not older than $2" 3
|
||||
return 0
|
||||
else
|
||||
decho " mtime: $1 older than $2" 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user