Skip to content

Commit

Permalink
Install OpenSTV
Browse files Browse the repository at this point in the history
  • Loading branch information
mvl22 committed Sep 27, 2013
1 parent 867f815 commit 73e635c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 2-install-bob.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73e635c

Please sign in to comment.