go.sh scripts of several benchmarks modified to pick up $CC, $CFLAGS, $CXXFLAGS,...
[phoronix-static.git] / encode-ogg / go.sh
blob32d3ab10cd9690ec76030ee98b977545a967a734
1 #!/bin/bash -x
3 # Copyright (C) 2011 Sebastian Pop <sebpop@gmail.com>.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details. A copy of this license
13 # can be downloaded from http://www.gnu.org/copyleft/gpl.html
15 p=`pwd`
16 rm -rf usr libogg-1.1.3 libvorbis-1.2.0 vorbis-tools-1.2.0
17 mkdir -p usr
18 tar -zxf libogg-1.1.3.tar.gz
19 tar -zxf libvorbis-1.2.0.tar.gz
20 tar -zxf vorbis-tools-1.2.0.tar.gz
21 cd libogg-1.1.3
22 ./configure --prefix=$p/usr
23 make -j $procs CFLAGS="$CFLAGS"
24 make install
25 cd ../libvorbis-1.2.0
26 ./configure --prefix=$p/usr
27 make -j $procs CFLAGS="$CFLAGS"
28 make install
29 cd ../vorbis-tools-1.2.0/
30 ./configure --prefix=$p/usr
31 make -j $procs CFLAGS="$CFLAGS"
32 make install
33 before=`date +%s.%N`
34 $p/usr/bin/oggenc $p/../extra/pts-trondheim-3.wav -q 10 -o /dev/null > /dev/null 2>&1
35 after=`date +%s.%N`
36 echo "encode-ogg run time: `echo "$after - $before" | bc`" > $p/log
37 cd $p; rm -rf usr libogg-1.1.3 libvorbis-1.2.0 vorbis-tools-1.2.0