You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
# deprecated for Processing visualizations http://fabien.benetou.fr/Wiki/Visualization#timeline
|
|
|
|
|
|
|
|
NOW_EPOCH=$(date +"%s")
|
|
|
|
WIKI_PATH=/home/utopiah/web/benetou.fr/fabien
|
|
|
|
sleep 1
|
|
|
|
for PAGE in $(echo $1 | grep -v -E "flock|pageindex|RecentChanges" | sed "s/,new//");
|
|
|
|
do
|
|
|
|
/home/utopiah/bin/wiki_page_diffs $WIKI_PATH/wiki.d/$PAGE > $WIKI_PATH/pub/visualization/edits_per_page/$PAGE.data;
|
|
|
|
echo -e "set terminal png\nset output '$PAGE.png'\nset notitle\nset nokey\nset xlabel ''\nset format x ''\nset format y ''\nset ylabel ''\nset timefmt '%s'\nset size 1,0.05\nplot [1214268628:$NOW_EPOCH] [0:] '$PAGE.data' using 1:0\n" > $WIKI_PATH/pub/visualization/edits_per_page/$PAGE.plt;
|
|
|
|
cd $WIKI_PATH/pub/visualization/edits_per_page/; gnuplot $PAGE.plt;
|
|
|
|
done
|