shithub: mp3dec

ref: 368797e42ee8a84793eb2af07e4067fa3ba4f576
dir: /scripts/build.sh/

View raw version
_FILENAME=${0##*/}
CUR_DIR=${0/${_FILENAME}}
CUR_DIR=$(cd $(dirname ${CUR_DIR}); pwd)/$(basename ${CUR_DIR})/

pushd $CUR_DIR/..

set -e

gcc -O2 -g -Wall -Wextra -o minimp3 minimp3_test.c -lm

APP=./minimp3

set +e
for i in vectors/*.bit; do
$APP $i ${i%.*}.pcm
retval=$?
echo $i exited with code=$retval
if [ ! $retval -eq 0 ]; then
  exit 1
fi
done