blob: 4a69011cccaca6b31b7c6e76344324e6c33b9288 (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#!/bin/bash
echo -n "Cleaning Stuff now"
rm -rf _inst > /dev/null
echo -n "."
rm -rf libopensync-0.?? > /dev/null
echo -n "."
rm -f libopensync-0.??.tar.gz > /dev/null
echo "."
TOP_SRCDIR=$(pwd)
echo -n "Making sure build environment is sane"
autoreconf -sfi > /dev/null
echo -n "."
./configure > /dev/null
echo -n "."
make clean > /dev/null || exit 1
echo "."
echo "Making tarball"
make dist > /dev/null || exit 1
mkdir _inst > /dev/null
rm -rf libopensync-0.??
echo "Unpacking tarball"
tar zxvf libopensync-0.??.tar.gz > /dev/null || exit 1
cd libopensync-0.??
echo -n "Checking if configure is working"
./configure --enable-tests=no --disable-python > /dev/null || exit 1
echo -n "Making OpenSync"
autoreconf -sfi > /dev/null
echo -n "."
./configure --prefix=$TOP_SRCDIR/_inst > /dev/null || exit 1
echo -n "."
make install > /dev/null || exit 1
echo "."
echo "Makeing clean"
make distclean > /dev/null || exit 1
echo -n "Making OpenSync"
./configure --enable-tests=no --enable-python --prefix=$TOP_SRCDIR/_inst > /dev/null || exit 1
echo -n "."
make install > /dev/null || exit 1
echo "."
cd $TOP_SRCDIR/docs/example-plugin
echo -n "Making example plugin"
export PKG_CONFIG_PATH=$TOP_SRCDIR/_inst/lib
autoreconf -sfi > /dev/null
echo -n "."
./configure --prefix=$TOP_SRCDIR/_inst > /dev/null || exit 1
echo -n "."
make install > /dev/null || exit 1
echo -n "."
make distclean > /dev/null || exit 1
echo "."
cd $TOP_SRCDIR/libopensync-0.?? || exit 1
echo "Running tests now."
make check || exit 1
cd $TOP_SRCDIR
rm -rf _inst
rm -rf libopensync-0.??
echo "Everyting went fine!"
|