Debian Codegraph @

testsuite/compatibility/compatibility_check

raw
1 #!/bin/sh
2
3 set -e
4 set -x
5
6 version=0.4.5
7 topdir=`pwd`
8 tmpdir=${topdir}/tmp
9
10 test -f orc-${version}.tar.gz || \
11 test -f orc-${version}.tar.xz || \
12 wget http://gstreamer.freedesktop.org/src/orc/orc-${version}.tar.gz || \
13 wget http://gstreamer.freedesktop.org/src/orc/orc-${version}.tar.xz
14
15 rm -rf ${tmpdir}
16 mkdir -p ${tmpdir}
17
18 # FIXME: no test.orc ..
19 libtool --mode=execute ../../tools/orcc -o ${tmpdir}/out.c --implementation test.orc
20
21 if test -f orc-${version}.tar.gz; then
22 tar -xzf orc-${version}.tar.gz --directory ${tmpdir}
23 elif test -f orc-${version}.tar.xz; then
24 tar -xzf orc-${version}.tar.xz --directory ${tmpdir}
25 fi
26 cd ${tmpdir}
27
28 cd orc-${version}
29 ./configure --prefix=${tmpdir}/_inst
30 make
31 make install
32
33 cd ${tmpdir}
34 gcc -Wall -Werror -I${tmpdir}/_inst/include/orc-0.4/ -c -o out.o out.c
35
36