Chris@1588: #!/bin/bash Chris@1588: Chris@1588: set -e Chris@1588: Chris@1589: # In case we are running without a properly mounted /var/hg directory, Chris@1589: # check for the existence of one repo and, if absent, attempt to clone Chris@1589: # it so that we have something we can serve for test purposes. Chris@1589: Chris@1588: if [ ! -d /var/hg/vamp-plugin-sdk ]; then Chris@1588: echo "Cloning vamp-plugin-sdk repo for testing..." Chris@1588: cd /var/hg Chris@1588: hg clone https://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk Chris@1590: chown -R www-data.code vamp-plugin-sdk Chris@1588: fi