From acdbff03728e7e61a228331ed0ceebd6dd2c7eb9 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Fri, 25 Nov 2011 16:00:23 +0000 Subject: [PATCH] Untested attempt to switch cruise control to bjam --- cruise-control/test_all_new_commits.sh | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/cruise-control/test_all_new_commits.sh b/cruise-control/test_all_new_commits.sh index eec6d9d4b..a6cf8a150 100755 --- a/cruise-control/test_all_new_commits.sh +++ b/cruise-control/test_all_new_commits.sh @@ -85,26 +85,26 @@ function run_single_test () { git checkout --force $commit 2>/dev/null || die "Failed to checkout commit $commit" err="" - echo "## regenerate-makefiles.sh" >> $longlog - ./regenerate-makefiles.sh >> $longlog 2>&1 || err="regenerate-makefiles" +# echo "## regenerate-makefiles.sh" >> $longlog +# ./regenerate-makefiles.sh >> $longlog 2>&1 || err="regenerate-makefiles" - echo "## make clean" >> $longlog - make clean >> $longlog 2>&1 || warn "make clean failed, suspicious" + echo "## ./bjam clean" >> $longlog + ./bjam clean >> $longlog 2>&1 || warn "bjam clean failed, suspicious" - echo "## ./configure $MCC_CONFIGURE_ARGS" >> $longlog +# echo "## ./configure $MCC_CONFIGURE_ARGS" >> $longlog +# if [ -z "$err" ]; then +# ./configure $MCC_CONFIGURE_ARGS >> $longlog 2>&1 || err="configure" +# fi + + echo "## ./bjam $MCC_CONFIGURE_ARGS" >> $longlog if [ -z "$err" ]; then - ./configure $MCC_CONFIGURE_ARGS >> $longlog 2>&1 || err="configure" - fi - - echo "## make" >> $longlog - if [ -z "$err" ]; then - make >> $longlog 2>&1 || err="make" + ./bjam $MCC_CONFIGURE_ARGS >> $longlog 2>&1 || err="make" fi echo "## make scripts" >> $longlog cd scripts if [ -z "$err" ]; then - make >> $longlog 2>&1 || err="make scripts" + ../bjam >> $longlog 2>&1 || err="bjam scripts" fi cd .. @@ -139,8 +139,8 @@ function run_single_test () { cd .. touch giza-pp.ok fi - sed -i 's#^my \$BINDIR\s*=.*#my \$BINDIR="'$(pwd)/giza-pp/bin/'";#' \ - scripts/training/train-model.perl + sed 's#^my \$BINDIR\s*=.*#my \$BINDIR="'$(pwd)/giza-pp/bin/'";#' \ + scripts/training/train-model.perl srilm_dir=$(echo $MCC_CONFIGURE_ARGS | sed -r 's/.*--with-srilm=([^ ]+) .*/\1/') mach_type=$($srilm_dir/sbin/machine-type) mkdir -p "$WORKDIR/ems_workdir"