From 73e635c9cb1d558a14a3d4abe06bdd385f199d1b Mon Sep 17 00:00:00 2001 From: mvl22 Date: Fri, 27 Sep 2013 14:10:18 +0100 Subject: [PATCH] Install OpenSTV --- 2-install-bob.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/2-install-bob.sh b/2-install-bob.sh index 84b231c..4b74b7e 100644 --- a/2-install-bob.sh +++ b/2-install-bob.sh @@ -12,6 +12,16 @@ if [ ! -d ${documentRoot}/bob ] ; then git clone https://github.com/cusu/bob.git fi +# Install (download) OpenSTV +if [ ! -d ${documentRoot}/openstv ] ; then + cd "${documentRoot}" + wget https://github.com/cusu/openSTV/blob/master/SourceCode/OpenSTV-1.6-2_original.tar.gz?raw=true + tar xvzf OpenSTV-1.6-2_original.tar.gz + mv OpenSTV-1.6/openstv . + rm -rf OpenSTV-1.6 + rm OpenSTV-1.6-2_original.tar.gz +fi + # Use the database version of the boostrap file rather than the manual bootstap file if [ -r "${documentRoot}"/bob/index-dbconfig.php ]; then mv "${documentRoot}"/bob/index-dbconfig.php "${documentRoot}"/bob/index.php