1#!/bin/sh 2 3PORTABLE_PWD=`pwd` 4 5LD_LIBRARY_PATH="$PORTABLE_PWD:$LD_LIBRARY_PATH" 6DYLD_LIBRARY_PATH="$PORTABLE_PWD:$DYLD_LIBRARY_PATH" 7LD_64_LIBRARY_PATH="$PORTABLE_PWD:$LD_64_LIBRARY_PATH" 8LD_32_LIBRARY_PATH="$PORTABLE_PWD:$LD_32_LIBRARY_PATH" 9LD_LIBRARY_PATH_64="$PORTABLE_PWD:$LD_LIBRARY_PATH_64" 10LD_LIBRARY_PATH_32="$PORTABLE_PWD:$LD_LIBRARY_PATH_32" 11PATH="$LD_LIBRARY_PATH:$PATH" 12export LD_LIBRARY_PATH 13export DYLD_LIBRARY_PATH 14export LD_64_LIBRARY_PATH 15export LD_32_LIBRARY_PATH 16export LD_LIBRARY_PATH_64 17export LD_LIBRARY_PATH_32 18 19MPD_PREC="$1" 20MPD_DPREC=`expr "$MPD_PREC" \* 2` 21 22if [ ! -f ./bench_full -a ! -f ./bench_shared ]; then 23 printf "\n./train.sh: error: no training files found\n\n" 24 exit 1 25fi 26 27if [ -f ./bench_full ]; then 28 ./bench_full "$MPD_PREC" 1000 > /dev/null 2>&1 29 ./bench_full "$MPD_DPREC" 1000 > /dev/null 2>&1 30fi 31 32if [ -f ./bench_shared ]; then 33 ./bench_shared "$MPD_PREC" 1000000 > /dev/null 2>&1 34 ./bench_shared "$MPD_DPREC" 1000000 > /dev/null 2>&1 35fi 36