# HG changeset patch # User tomwalters # Date 1281527960 0 # Node ID d961cc31ef691ef74512bc9342ad3c5f07b99c56 # Parent aa4eea1a356800b910bc38ec0e1200f98751c3b2 - AWS (bis) diff -r aa4eea1a3568 -r d961cc31ef69 experiments/scripts/aimc/build_aimc.sh --- a/experiments/scripts/aimc/build_aimc.sh Wed Aug 11 11:52:02 2010 +0000 +++ b/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 diff -r aa4eea1a3568 -r d961cc31ef69 experiments/scripts/cnbh-syllables/feature_generation/run_aimcopy.sh --- a/experiments/scripts/cnbh-syllables/feature_generation/run_aimcopy.sh Wed Aug 11 11:52:02 2010 +0000 +++ b/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 diff -r aa4eea1a3568 -r d961cc31ef69 experiments/scripts/master.sh --- a/experiments/scripts/master.sh Wed Aug 11 11:52:02 2010 +0000 +++ b/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