Mercurial > hg > aimc
changeset 67:217d5df0cd8a
- More AWS stuff
author | tomwalters |
---|---|
date | Wed, 11 Aug 2010 10:34:57 +0000 |
parents | 88db753089bf |
children | ab6cce48bf3c |
files | experiments/scripts/master.sh experiments/scripts/setup_aws_instance.sh |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/experiments/scripts/master.sh Wed Aug 11 09:57:26 2010 +0000 +++ b/experiments/scripts/master.sh Wed Aug 11 10:34:57 2010 +0000 @@ -9,7 +9,7 @@ # Set these to be the location of your input database, and desired output # locations. -SYLLABLES_DATABASE_TAR=/media/sounds/cnbh-syllables.tar +SYLLABLES_DATABASE_TAR=/mnt/sounds/cnbh-syllables.tar SOUNDS_ROOT=/mnt/experiments/sounds/ FEATURES_ROOT=/mnt/experiments/features/ HMMS_ROOT=/mnt/experiments/hmms/ @@ -24,6 +24,12 @@ # Fail if any variable is unset set -u +if [ ! -e $SYLLABLES_DATABASE_TAR ]; then + sudo mkdir -p `dirname $SYLLABLES_DATABASE_TAR` + sudo chown ubuntu `dirname $SYLLABLES_DATABASE_TAR` + wget -O $SYLLABLES_DATABASE_TAR $SYLLABLES_DATABASE_URL +fi + if [ ! -d $SOUNDS_ROOT ]; then sudo mkdir -p $SOUNDS_ROOT sudo chown `whoami` $SOUNDS_ROOT
--- a/experiments/scripts/setup_aws_instance.sh Wed Aug 11 09:57:26 2010 +0000 +++ b/experiments/scripts/setup_aws_instance.sh Wed Aug 11 10:34:57 2010 +0000 @@ -15,5 +15,5 @@ sudo chown ubuntu /mnt/aimc cd /mnt/aimc svn checkout http://aimc.googlecode.com/svn/trunk/ aimc-read-only -cd aimc-read-only/experiments +cd aimc-read-only/experiments/scripts ./master.sh