7 wget --no-check-certificate http://github.com/malsup/form/raw/master/jquery.form.js
10 rst2html --link-stylesheet --stylesheet-path=survey.css survey.rst > $@
12 results.html: results.rst figures/stats.txt
13 rst2html --link-stylesheet --stylesheet-path=survey.css results.rst > $@
15 results_snippet.html: results.html
16 head -n$$(echo "$$(grep -n '</body>' < results.html | cut -d ':' -f 1,1) - 1" \
18 | tail -n$$(echo "$$(wc -l < results.html) - $$(grep -n '<body>' \
19 < results.html | cut -d ':' -f 1,1) - 2" | bc ) > $@
21 statfigures: oslist.txt swlist.txt datamodlist.txt
24 @[ "$$(cat nsubmissions.stamp || true)" != "$$(ls -1 data |wc -l)" ] \
25 && ls -1 data |wc -l > nsubmissions.stamp \
26 && MVPA_MATPLOTLIB_BACKEND=agg ./makestats data figures || true
31 rsync -rvzlhp --delete \
32 neurodebian@www.pymvpa.org:/home/neurodebian/surveydata .
34 oslist.txt: select_os_options.inc
35 grep -v selected select_os_options.inc | sed -e 's/<option value="//' \
36 -e 's/" label="/: "/' -e 's/">.*$$/"/' > $@
38 swlist.txt: survey.rst
39 grep '"sw.*" value' survey.rst | sed -e 's/.*name="sw.*" value="//' -e 's," />,: ",' \
40 -e 's,</td>$$,",' -e 's/ "$$/ "Other"/' > $@
42 datamodlist.txt: survey.rst
43 grep '"bg_datamod"' survey.rst | sed -e 's/.*name="bg_datamod" value="//' \
44 -e 's," />,: ",' -e 's,<br />$$,",' -e 's/ "$$/ "Other"/' > $@
46 upload: index.html results.html results_snippet.html jquery.form.js survey.css surveycollector.cgi
47 rsync -rvzlhp --delete \
48 --exclude='*.txt' --exclude=surveydata --exclude='*.cgi' --exclude=figures \
49 --chmod=Dg+s,g+rw * neurodebian@www.pymvpa.org:/home/neurodebian/survey/
50 scp surveycollector.cgi neurodebian@www.pymvpa.org:/srv/neuro.debian.net/cgi-bin/