2018-12-28 06:44:10 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
|
|
|
cd $SCRIPTPATH/..
|
|
|
|
datadirectory=$SCRIPTPATH/data/$(uname -n)
|
|
|
|
mkdir -p $datadirectory
|
|
|
|
|
|
|
|
os=$(uname)
|
|
|
|
|
|
|
|
|
2019-01-18 08:28:18 +08:00
|
|
|
make parsingcompetition allparsingcompetition
|
2018-12-28 06:44:10 +08:00
|
|
|
echo "parsing (with competition)"
|
2020-11-04 04:48:09 +08:00
|
|
|
echo
|
2018-12-28 06:44:10 +08:00
|
|
|
for i in $SCRIPTPATH/../jsonexamples/*.json; do
|
|
|
|
[ -f "$i" ] || break
|
|
|
|
echo $i
|
|
|
|
shortname=$(basename $SCRIPTPATH/$i.table)
|
|
|
|
corename=$(basename ${shortname%.*})".pdf"
|
|
|
|
$SCRIPTPATH/../parsingcompetition -t $i > $datadirectory/$shortname
|
2019-01-18 08:28:18 +08:00
|
|
|
$SCRIPTPATH/../allparsingcompetition -t $i > $datadirectory/all$shortname
|
2018-12-28 06:44:10 +08:00
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "see results in "$datadirectory
|
2019-01-04 04:24:49 +08:00
|
|
|
|
2020-11-04 04:48:09 +08:00
|
|
|
cd $datadirectory && gnuplot bar.gnuplot
|