summaryrefslogtreecommitdiffstats
path: root/check_svn_build.sh
blob: ac69bf36abd4bb89ea918ac948a3ddd34512ee5e (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


clean() {
	echo -n "Delete old build..."
	rm -rf $BUILDDIR
	echo "Done."
	
	echo -n "Create $BUILDDIR..."
	mkdir $BUILDDIR
	echo "Done."
}

checkout() {
	echo "Do SVN checkout from $SVNURL..."
	svn co $SVNURL
	echo "Done."

}

linkadmin() {
	echo -n "Link admin dir...$ADMIN"
	ln -s $ADMIN .
	echo "Done."
}


cleanbuild() {
	echo "Make Clean..."
	$MAKE clean
	echo "Done."
}

build() {
	echo "Start build..."
	$MAKE -f admin/Makefile.common && \
		./configure $CONFIG_OPTIONS && \
	time $MAKE $MAKE_ARGS
	echo "Done."
}

BUILDDIR="../check_svn_build_buildDir"
MAKE="unsermake"
MAKE_ARGS="-j3"
CONFIG_OPTIONS="--prefix=/usr --enable-debug=no "
SVNURL="https://svn.kde.org/home/kde/branches/extragear/kde3/network/kmyfirewall/"
ADMIN="../../kde-common/admin/"

echo "Usage: check_svn_config.sh"

clean
cd $BUILDDIR
checkout
cd kmyfirewall/
linkadmin
cleanbuild
build