Mercurial > hg > aimc
diff trunk/experiments/scripts/master.sh @ 348:f409e18bedc8
- More AWS stuff
author | tomwalters |
---|---|
date | Wed, 11 Aug 2010 10:34:57 +0000 |
parents | 0f9e97bbaa5d |
children | 54f37df74ef1 |
line wrap: on
line diff
--- a/trunk/experiments/scripts/master.sh Wed Aug 11 09:57:26 2010 +0000 +++ b/trunk/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