#!/bin/bash

set -e

./create_test_branch.sh "$1" "$2" $CODEC

mkdir -p "runs/$2/$3"

#export PATH=/sbin:/bin:/usr/sbin:/usr/bin
echo $PATH
echo $HOME
export DAALA_ROOT=daala/

echo Building...
case $CODEC in
  daala)
    pushd $DAALA_ROOT
    gcc -print-prog-name=cc1
    gcc -print-search-dirs
    ./autogen.sh; ./configure --enable-static --disable-shared --disable-player --disable-dump-images --enable-logging --enable-dump-recons ; make -j4
    popd
    ;;
  thor)
  thor-rt)
    pushd thor/
    make
    popd
    ;;
  x264)
    pushd x264/
    ./configure
    make
    popd
    ;;
  x265)
    pushd x265/build/linux
    ./make-Makefiles.bash
    make
    popd
    ;;
  vp10)
  vp10-rt)
    pushd vp10
    ./configure --enable-vp10
    make
    popd
    ;;
  vp9)
    pushd vp9
    ./configure --enable-vp9
    make
    popd
    ;;
esac

cd rd_tool
DAALA_ROOT=../daala python3 -u rd_tool.py -codec $CODEC -prefix "../runs/$2/$3" "$3"
DAALA_ROOT=../daala python3 -u rd_tool.py -codec $CODEC -mode 'ab' -runid "$RUN_ID" "$3"

#!/bin/bash

set -e

./create_test_branch.sh "$1" "$2" $CODEC

mkdir -p "runs/$2/$3"

#export PATH=/sbin:/bin:/usr/sbin:/usr/bin
echo $PATH
echo $HOME
export DAALA_ROOT=daala/

echo Building...
case $CODEC in
  daala)
    pushd $DAALA_ROOT
    gcc -print-prog-name=cc1
    gcc -print-search-dirs
    ./autogen.sh; ./configure --enable-static --disable-shared --disable-player --disable-dump-images --enable-logging --enable-dump-recons ; make -j4
    popd
    ;;
  thor)
    pushd thor/
    make
    popd
    ;;
  x264)
    pushd x264/
    ./configure
    make
    popd
    ;;
  x265)
    pushd x265/build/linux
    ./make-Makefiles.bash
    make
    popd
    ;;
  vp10)
    pushd vp10
    ./configure --enable-vp10
    make
    popd
    ;;
  vp9)
    pushd vp9
    ./configure --enable-vp9
    make
    popd
    ;;
esac

cd rd_tool
DAALA_ROOT=../daala python3 -u rd_tool.py -codec $CODEC -prefix "../runs/$2/$3" "$3"
DAALA_ROOT=../daala python3 -u rd_tool.py -codec $CODEC -mode 'ab' -runid "$RUN_ID" "$3"

--- 
+++ 
@@ -21,7 +21,6 @@
     popd
     ;;
   thor)
-  thor-rt)
     pushd thor/
     make
     popd
@@ -39,7 +38,6 @@
     popd
     ;;
   vp10)
-  vp10-rt)
     pushd vp10
     ./configure --enable-vp10
     make
Add build for thor-rt, vp10-rt
