changeset 353:683df686f40d

- AWS (bis)
author tomwalters
date Wed, 11 Aug 2010 11:59:20 +0000
parents 26c7ad278d3c
children fcc9fcd04a99
files trunk/experiments/scripts/aimc/build_aimc.sh trunk/experiments/scripts/cnbh-syllables/feature_generation/run_aimcopy.sh trunk/experiments/scripts/master.sh
diffstat 3 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/experiments/scripts/aimc/build_aimc.sh	Wed Aug 11 11:52:02 2010 +0000
+++ b/trunk/experiments/scripts/aimc/build_aimc.sh	Wed Aug 11 11:59:20 2010 +0000
@@ -1,5 +1,8 @@
 #!/bin/bash
 # Set up AIM-C on an Amazon EC2 instance. A useful reference for building.
+set -e
+set -u
+
 AIMC_DIR=/mnt/experiments/aimc
 
 sudo mkdir -p $AIMC_DIR
@@ -9,4 +12,6 @@
 cd aimc-read-only
 scons
 cd ..
-export PATH=$PATH:$AIMC_DIR/aimc-read-only/build/posix-release/
\ No newline at end of file
+export PATH=$PATH:$AIMC_DIR/aimc-read-only/build/posix-release/
+touch $AIMC_DIR/.aimc_build_success
+cd -
\ No newline at end of file
--- a/trunk/experiments/scripts/cnbh-syllables/feature_generation/run_aimcopy.sh	Wed Aug 11 11:52:02 2010 +0000
+++ b/trunk/experiments/scripts/cnbh-syllables/feature_generation/run_aimcopy.sh	Wed Aug 11 11:59:20 2010 +0000
@@ -2,7 +2,7 @@
 
 # Test for the existence of AIMCopy in the path
 AIMCOPY=`which AIMCopy`
-if [ $AIMCOPY == "" ]; then
+if [ "$AIMCOPY" == "" ]; then
   echo "Please build AIM-C and make AIMCopy available in the path"
 fi
 
--- a/trunk/experiments/scripts/master.sh	Wed Aug 11 11:52:02 2010 +0000
+++ b/trunk/experiments/scripts/master.sh	Wed Aug 11 11:59:20 2010 +0000
@@ -71,6 +71,14 @@
   ./HTK/install_htk.sh
 fi
 
+if [ ! -e /mnt/experiments/aimc/.aimc_build_success]; then
+# ./aimc/build_aimc.sh
+  cd ../../
+  scons
+  export PATH=$PATH:`pwd`/build/posix-release/
+  cd -
+fi
+
 for SOURCE_SNR in $FEATURE_DIRS; do
   
   if [ ! -e $FEATURES_ROOT/mfcc/$SOURCE_SNR/.make_mfcc_features_success ]; then