Added a comma after each msgnum exported. The parser was globbing them all together...
[citadel.git] / contrib / include.sh
1 export VSERVER_ROOT=/var/lib/vservers/
2 export CIT_APACHE_DIR=/home/debiancitadel/
3 export APACHE_ROOT=${VSERVER_ROOT}/apache/${CIT_APACHE_DIR}
4 export TARGETS=/home/citbuild/targets
5 export CHECKOUT_DIR=/home/checkout/
6 export CONTRIB_DIR=/home/contrib/
7
8 # retrieve the debian sources.
9 # $1: the VSERVER_BASE
10 # $2: the inner Directory, aka CHECKOUT_DIR
11 # $3: the Program Component.
12 GetSource()
13 {
14     cd ${VSERVER_ROOT}/$1/${2}; apt-get source $3
15 }
16
17 # compile the sources of one component.
18 # $1: the VSERVER_BASE
19 # $2: the inner Directory, aka CHECKOUT_DIR
20 # $3: the Program Component.
21 BuildSource ()
22 {
23     chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "cd ${2}/${3}*; fakeroot dpkg-buildpackage"
24 }
25
26 # Install a contrib library into the build system.
27 # $1: the VSERVER_BASE
28 # $2: the inner Directory, aka CHECKOUT_DIR
29 # $3: the Program Component.
30 InstallContrib ()
31 {
32     chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "cd ${2}; dpkg -i ${3}*.deb"
33 }
34
35
36 # $1: the VSERVER_BASE
37 # $2: the distro dir on the webserver
38 UpperResults()
39 {
40     mv ${VSERVER_ROOT}/${1}/${CHECKOUT_DIR}/*.deb $APACHE_ROOT/public_html/$2/
41     cp ${VSERVER_ROOT}/${1}/${CONTRIB_DIR}/*.deb $APACHE_ROOT/public_html/$2/
42 }
43
44 # $1: the VSERVER_BASE
45 # $2: the inner Directory, aka CHECKOUT_DIR
46 CleanBuild()
47 {
48     rm -rf ${VSERVER_ROOT}/$1/${2}/*
49 }
50
51
52 # $1: the distro dir on the webserver
53 CleanApache()
54 {
55     rm -f $APACHE_ROOT/public_html/$1/*.deb
56 }
57
58
59 # Install a contrib library into the build system.
60 # $1: the VSERVER_BASE
61 UpgradeBuildTarget ()
62 {
63     chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "apt-get update; apt-get upgrade"
64 }