2019-11-16 09:24:14 -05:00
|
|
|
#!/bin/sh
|
|
|
|
now=`date "+%Y%m%d%H%M%S"`
|
2021-06-01 08:23:59 -04:00
|
|
|
log="log-$now.txt"
|
2019-11-16 09:24:14 -05:00
|
|
|
csv="master.csv"
|
|
|
|
exe="./rwos-db.py"
|
|
|
|
|
2021-06-01 08:23:59 -04:00
|
|
|
exec </dev/null 2>$log 1>&2
|
2019-11-16 09:24:14 -05:00
|
|
|
|
2019-11-16 16:02:54 -05:00
|
|
|
case "x$1" in
|
|
|
|
x-n) dofetch=false ;;
|
|
|
|
*) dofetch=true ;;
|
|
|
|
esac
|
|
|
|
|
2019-11-16 09:24:14 -05:00
|
|
|
set -x
|
|
|
|
|
2021-06-01 10:27:09 -04:00
|
|
|
date
|
|
|
|
./get-fresh-csv.sh || exit 1
|
2019-11-16 09:24:14 -05:00
|
|
|
|
2021-06-01 17:59:00 -04:00
|
|
|
date
|
|
|
|
./get-securedrop-csv.py || exit 1
|
|
|
|
|
2021-06-01 06:04:53 -04:00
|
|
|
date
|
2019-11-16 16:02:54 -05:00
|
|
|
if $dofetch ; then
|
|
|
|
$exe fetch || exit 1
|
|
|
|
fi
|
2019-11-16 09:24:14 -05:00
|
|
|
|
2021-06-01 06:04:53 -04:00
|
|
|
date
|
2019-11-16 09:24:14 -05:00
|
|
|
(
|
|
|
|
cat 01-preamble.md
|
|
|
|
echo ""
|
|
|
|
$exe print || exit 1
|
|
|
|
echo ""
|
|
|
|
cat 02-footnotes.md
|
|
|
|
echo ""
|
|
|
|
) > README.md
|
|
|
|
|
2021-06-01 08:23:59 -04:00
|
|
|
date
|
|
|
|
$exe trash
|
|
|
|
|
2021-06-01 06:04:53 -04:00
|
|
|
date
|
2019-11-16 09:24:14 -05:00
|
|
|
exit 0
|