* Fixed problems related to saving vCards in config rooms. For starters, we were...
[citadel.git] / contrib / contrib.sh
blob7e5978f5f3bd906d5fa356e4c3ba9e5893258a09
1 #!/bin/bash
2 source include.sh
4 # First get the chroot up and running with:
5 #apt-get install bzip2 perl-doc lib32stdc++6 manpages-dev autoconf automake1.9 libtool flex libc6-dev-i386 lib32gcc1 groff debhelper po-debconf bison autotools-dev libdb4.3-dev libldap2-dev libncurses5-dev libpam0g-dev libssl-dev cdbs g++ locales dpatch fakeroot patchutils
6 WD=`pwd`
8 for i in `cat $TARGETS`; do
9 cd $WD
10 DISTRO=`dirname $i`
11 VSERVER_BASE=`basename $i`
12 DISTVER=`basename $i |sed "s;CitadelBuild.;;"`
13 DISTVER=`cd $APACHE_ROOT/public_html/$DISTRO/; ls -d ?$DISTVER `
14 echo "*** building $DISTRO $DISTVER ical *****"
16 CleanBuild $VSERVER_BASE $CONTRIB_DIR
18 cd $WD
19 if grep -q $VSERVER_BASE libical_targets; then
20 GetSource $VSERVER_BASE $CONTRIB_DIR libical
21 BuildSource $VSERVER_BASE $CONTRIB_DIR libical
22 InstallContrib $VSERVER_BASE $CONTRIB_DIR libical
25 echo "*** building $DISTRO $DISTVER sieve *****"
26 cd $WD
27 if grep -q $VSERVER_BASE libsieve_targets; then
28 GetSource $VSERVER_BASE $CONTRIB_DIR libsieve
29 BuildSource $VSERVER_BASE $CONTRIB_DIR libsieve
30 InstallContrib $VSERVER_BASE $CONTRIB_DIR libsieve
32 echo "**** done. ****"
33 echo "*** building $DISTRO $DISTVER tinymce *****"
34 cd $WD
35 if grep -q $VSERVER_BASE tinymce_targets; then
36 GetSource $VSERVER_BASE $CONTRIB_DIR tinymce
37 BuildSource $VSERVER_BASE $CONTRIB_DIR tinymce
38 InstallContrib $VSERVER_BASE $CONTRIB_DIR tinymce
40 echo "**** done. ****"
41 done
43 #for i in `cat $TARGETS`; do
44 # echo "*** installing $DISTRO *****"
46 #done
49 chroot ${VSERVER_ROOT}/apache/ /bin/bash -c "cd ${CIT_APACHE_DIR}/; ./refresh.sh"