From 9d6c7d2c2225b00c4e6fdc962ea4895e2c865292 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 25 May 2011 12:26:18 -0400 Subject: [PATCH] closing survey: few makefile rules for that --- survey/Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/survey/Makefile b/survey/Makefile index fb16ff3..508fde7 100644 --- a/survey/Makefile +++ b/survey/Makefile @@ -6,8 +6,9 @@ clean: jquery.form.js: wget --no-check-certificate http://github.com/malsup/form/raw/master/jquery.form.js -index.html: survey.rst - rst2html --link-stylesheet --stylesheet-path=survey.css survey.rst > $@ +#index.html: survey.rst +index.html: closed.rst + rst2html --link-stylesheet --stylesheet-path=survey.css $< > $@ results.html: results.rst figures/stats.txt rst2html --link-stylesheet --stylesheet-path=survey.css results.rst > $@ @@ -66,10 +67,18 @@ ratingslist.txt: survey.rst | sed -e 's,#,#\n,g' \ | sed -e 's,\(.*\)|\(.*\)#,\2: "\1",g' >| $@ -upload: index.html results.html results_snippet.html jquery.form.js survey.css surveycollector.cgi +upload: upload-closed + +upload-closed: index.html + rsync -rvzlhp --delete \ + --exclude='*.txt' --exclude=data --exclude=figures \ + --chmod=Dg+s,g+rw $^ neurodebian@www.pymvpa.org:/home/neurodebian/survey/ + ssh neurodebian@www.pymvpa.org rm /srv/neuro.debian.net/cgi-bin/surveycollector.cgi + +upload-survey: index.html results.html results_snippet.html jquery.form.js survey.css surveycollector.cgi rsync -rvzlhp --delete \ --exclude='*.txt' --exclude=data --exclude='*.cgi' --exclude=figures \ - --chmod=Dg+s,g+rw * neurodebian@www.pymvpa.org:/home/neurodebian/survey/ + --chmod=Dg+s,g+rw $^ neurodebian@www.pymvpa.org:/home/neurodebian/survey/ scp surveycollector.cgi neurodebian@www.pymvpa.org:/srv/neuro.debian.net/cgi-bin/ .PHONY: statfigures -- 2.39.2