Project

General

Profile

« Previous | Next » 

Revision 6969

Added import_date

View differences:

bin/import_date
1
#!/bin/sh
2
# Gets the date of an import based on its log files' mtimes
3
# Usage: self logs...
4

  
5
selfDir="$(dirname -- "$0")"
6

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

  
12
for log in "$@"; do
13
    "$selfDir/mtime" "$log"
14
    break # only for first log file
15
done
0 16

  

Also available in: Unified diff