* Reduced iconbar button size to 90% because it looked obtuse on a smaller screen
[citadel.git] / contrib / include.sh
blob8fce698ad6af7c329f239e48bdafbc936898d056
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/
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()
14 cd ${VSERVER_ROOT}/$1/${2}; apt-get source $3
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 ()
23 chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "cd ${2}/${3}*; fakeroot dpkg-buildpackage"
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 ()
32 chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "cd ${2}; dpkg -i ${3}*.deb"
36 # $1: the VSERVER_BASE
37 # $2: the distro dir on the webserver
38 UpperResults()
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/
44 # $1: the VSERVER_BASE
45 # $2: the inner Directory, aka CHECKOUT_DIR
46 CleanBuild()
48 rm -rf ${VSERVER_ROOT}/$1/${2}/*
52 # $1: the distro dir on the webserver
53 CleanApache()
55 rm -f $APACHE_ROOT/public_html/$1/*.deb
59 # Install a contrib library into the build system.
60 # $1: the VSERVER_BASE
61 UpgradeBuildTarget ()
63 chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "apt-get update; apt-get upgrade"