Project

General

Profile

1
#!/bin/sh
2
# Gets the date of an import based on its log files' mtimes
3
# Note that this is the time the first special input *finished* importing.
4
# The import itself generally starts a few minutes before that, and the exact
5
# time is in that import's public schema comment.
6

    
7
selfDir="$(dirname -- "$0")"
8

    
9
if ! test "$#" -ge 1; then
10
    echo "Usage: self logs..."|fold -s >&2
11
    exit 2
12
fi
13

    
14
for log in "$@"; do
15
    "$selfDir/mtime" "$log"
16
    break # only for first log file
17
done
(27-27/71)