* Move iconbar font size declaration to webcit.css
[citadel.git] / contrib / build.sh
blob87e6e26911dcae57c78b8c0673e6ac4d38af7824
1 #!/bin/bash
3 apt-get update
5 source include.sh
6 apt-get update
7 WD=`pwd`
8 # get everything built.
9 for i in `cat $TARGETS`; do
10 cd $WD
11 DISTRO=`dirname $i`
12 VSERVER_BASE=`basename $i`
13 DISTVER=`basename $i |sed "s;CitadelBuild.;;"`
14 DISTVER=`cd $APACHE_ROOT/public_html/$DISTRO/; ls -d ?$DISTVER `
15 echo "****** building $DISTRO $DISTVER ******"
16 CleanBuild $VSERVER_BASE $CHECKOUT_DIR
18 echo "****** building $DISTRO $DISTVER libcitadel ******"
19 cd $WD
20 GetSource $VSERVER_BASE $CHECKOUT_DIR libcitadel
21 BuildSource $VSERVER_BASE $CHECKOUT_DIR libcitadel
22 InstallContrib $VSERVER_BASE $CHECKOUT_DIR libcitadel
24 echo "****** building $DISTRO $DISTVER Webcit ******"
25 cd $WD
26 GetSource $VSERVER_BASE $CHECKOUT_DIR webcit
27 BuildSource $VSERVER_BASE $CHECKOUT_DIR webcit
29 echo "****** building $DISTRO $DISTVER Citadel ******"
30 cd $WD
31 GetSource $VSERVER_BASE $CHECKOUT_DIR citadel
32 BuildSource $VSERVER_BASE $CHECKOUT_DIR citadel
34 done
36 # put it public.
37 for i in `cat $TARGETS`; do
38 echo "****** installing $DISTRO $DISTVER ******"
40 cd $WD
41 DISTRO=`dirname $i`
42 VSERVER_BASE=`basename $i`
43 DISTVER=`basename $i |sed "s;CitadelBuild.;;"`
44 DISTVER=`cd $APACHE_ROOT/public_html/$DISTRO/; ls -d ?$DISTVER `
46 CleanApache "$DISTRO/$DISTVER"
48 cd $WD
49 UpperResults $VSERVER_BASE "$DISTRO/$DISTVER"
50 done
54 chroot ${VSERVER_ROOT}/apache/ /bin/bash -c "cd ${CIT_APACHE_DIR}/; ./refresh.sh"