annotate deploy/provision.d/110-hg-testdir.sh @ 1600:ed9c467ef922 dockerise

Add hggit extension
author Chris Cannam
date Wed, 23 Aug 2017 11:32:50 +0100
parents c18460da6620
children
rev   line source
Chris@1588 1 #!/bin/bash
Chris@1588 2
Chris@1588 3 set -e
Chris@1588 4
Chris@1589 5 # In case we are running without a properly mounted /var/hg directory,
Chris@1589 6 # check for the existence of one repo and, if absent, attempt to clone
Chris@1589 7 # it so that we have something we can serve for test purposes.
Chris@1589 8
Chris@1588 9 if [ ! -d /var/hg/vamp-plugin-sdk ]; then
Chris@1588 10 echo "Cloning vamp-plugin-sdk repo for testing..."
Chris@1588 11 cd /var/hg
Chris@1588 12 hg clone https://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk
Chris@1590 13 chown -R www-data.code vamp-plugin-sdk
Chris@1588 14 fi