-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
executable file
·39 lines (31 loc) · 1.42 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
SCRIPT_FILE=`readlink -f $0`
SCRIPT_DIR=`dirname $SCRIPT_FILE`
set -x
set -e
die()
{
echo $1
exit -1
}
rm -rf v4l-utils/build-aux/
cd $SCRIPT_DIR || die "change to home failed"
git submodule update --init --recursive || die "submodule update failed"
cd $SCRIPT_DIR/tsdecrypt || die "change to tsdecrypt failed"
git checkout master || die "checkout tsdecrypt failed"
git reset --hard origin/master || die "reset tsdecrypt failed"
git pull || die "pull tsdecrypt failed"
git submodule update --init --recursive || die "tsdecrypt submodule update failed"
cd $SCRIPT_DIR || die "change to home failed"
cd $SCRIPT_DIR/v4l-utils || die "change to v4l-utils failed"
git checkout master || die "checkout v4l-utils failed"
git reset --hard origin/master || die "reset v4l-utils failed"
git pull || die "pull v4l-utils failed"
git am -3 $SCRIPT_DIR/patches/* || die "patching v4l-utils failed"
./bootstrap.sh
./configure --prefix=/usr
make
sudo make install
cd $SCRIPT_DIR || die "change to home failed"
autoreconf -vfis || die "autoreconf tvdaeon failed"
./configure || die "configure tvdaemon failed"
make -j 1 || die "make tvdaemon failed"