republique

helper scripts for www.republique-numerique.fr
git clone https://a3nm.net/git/republique/
Log | Files | Refs | README

commit 62f0afd67be7042abe51f8183ff657d076d3733f
parent a73e89dfe2268357687c44194c6058a0d53b8a35
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu, 15 Oct 2015 13:28:37 +0200

tables.sh to do it all

Diffstat:
README | 5+++--
tables.sh | 12++++++++++++
2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/README b/README @@ -25,8 +25,9 @@ information (in French). - dump_all.sh DEST dump raw JSON of all opinions and versions to DEST/opinions and DEST/versions (also dumps a few ones that don't really exist and must be filtered) - You can then pretty-print to TSV with stdump.py DEST > TSV - You can create tables with maketable.sh TSV OUTPUT + - You can then pretty-print to TSV with stdump.py DEST > TSV + - You can create tables with maketable.sh TSV OUTPUT + - All of this is done in one step with tables.sh OUTPUT/ Examples: diff --git a/tables.sh b/tables.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "$0" )" && pwd )" +cd "$DIR" + +DUMP="dump/`date +%s`" +TSV="dump-`date +%s`.tsv" + +./dump_all.sh "$DUMP" +./stdump.py "$DUMP" > "$TSV" +./maketable.sh "$TSV" "$1" +