X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=contrib%2Finclude.sh;fp=contrib%2Finclude.sh;h=0000000000000000000000000000000000000000;hb=cf8f7ffedb36dbfaa5f1f413c42b976c4fda1142;hp=8fce698ad6af7c329f239e48bdafbc936898d056;hpb=fa2dd842abb5feedea3e2253255722fcaecc3c6f;p=citadel.git diff --git a/contrib/include.sh b/contrib/include.sh deleted file mode 100755 index 8fce698ad..000000000 --- a/contrib/include.sh +++ /dev/null @@ -1,64 +0,0 @@ -export VSERVER_ROOT=/var/lib/vservers/ -export CIT_APACHE_DIR=/home/debiancitadel/ -export APACHE_ROOT=${VSERVER_ROOT}/apache/${CIT_APACHE_DIR} -export TARGETS=/home/citbuild/targets -export CHECKOUT_DIR=/home/checkout/ -export CONTRIB_DIR=/home/contrib/ - -# retrieve the debian sources. -# $1: the VSERVER_BASE -# $2: the inner Directory, aka CHECKOUT_DIR -# $3: the Program Component. -GetSource() -{ - cd ${VSERVER_ROOT}/$1/${2}; apt-get source $3 -} - -# compile the sources of one component. -# $1: the VSERVER_BASE -# $2: the inner Directory, aka CHECKOUT_DIR -# $3: the Program Component. -BuildSource () -{ - chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "cd ${2}/${3}*; fakeroot dpkg-buildpackage" -} - -# Install a contrib library into the build system. -# $1: the VSERVER_BASE -# $2: the inner Directory, aka CHECKOUT_DIR -# $3: the Program Component. -InstallContrib () -{ - chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "cd ${2}; dpkg -i ${3}*.deb" -} - - -# $1: the VSERVER_BASE -# $2: the distro dir on the webserver -UpperResults() -{ - mv ${VSERVER_ROOT}/${1}/${CHECKOUT_DIR}/*.deb $APACHE_ROOT/public_html/$2/ - cp ${VSERVER_ROOT}/${1}/${CONTRIB_DIR}/*.deb $APACHE_ROOT/public_html/$2/ -} - -# $1: the VSERVER_BASE -# $2: the inner Directory, aka CHECKOUT_DIR -CleanBuild() -{ - rm -rf ${VSERVER_ROOT}/$1/${2}/* -} - - -# $1: the distro dir on the webserver -CleanApache() -{ - rm -f $APACHE_ROOT/public_html/$1/*.deb -} - - -# Install a contrib library into the build system. -# $1: the VSERVER_BASE -UpgradeBuildTarget () -{ - chroot ${VSERVER_ROOT}/$1/ /bin/bash -c "apt-get update; apt-get upgrade" -}