summaryrefslogtreecommitdiffstats
path: root/score.sh
blob: 10aa7f794a4094f3fdfb1d0d9eaad7071a35554a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -x
export PATH=$(realpath -s $(dirname "$0"))/bin:"$PATH"
proj="$1"
shift
if [ -z "$proj" ]; then
    proj=test
fi
if [ ! -d "$proj" ]; then
    set +x
    echo "$0: project directory $proj missing" 1>&2
    exit 1
fi
sdaps="sdaps $proj"
if [ $# -ne 0 ]; then
    $sdaps add "$@"
fi
$sdaps recognize --identify
$sdaps reorder
$sdaps recognize
#rm -f "$proj"/data_*.csv
$sdaps csv export
csvconv.pl "$proj" > "$proj"/report.csv
ln -f "$proj"/report.csv "$proj".csv