From: Mark Huang Date: Wed, 29 Mar 2006 03:51:56 +0000 (+0000) Subject: - make /var/www/html/install-rpms part of the main rpm package since X-Git-Tag: myplc-0_4-rc1~114 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=dbb2968b785d6fca6866c5ecc8c9ef2873833715;p=myplc.git - make /var/www/html/install-rpms part of the main rpm package since they are fs-independent --- diff --git a/build.sh b/build.sh index 93d2635..294d6a2 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: build.sh,v 1.3 2006/03/28 21:30:48 mlhuang Exp $ +# $Id: build.sh,v 1.4 2006/03/29 03:36:53 mlhuang Exp $ # PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -146,6 +146,27 @@ rsync -a \ --exclude=geni --exclude=PDN --exclude=Talks \ $srcdir/plc_www/ $root/var/www/html/ +# Install node RPMs +if [ -n "$RPM_BUILD_DIR" ] ; then + echo "* Installing node RPMs" + RPM_RPMS_DIR=$(cd $(dirname $RPM_BUILD_DIR)/RPMS && pwd -P) + mkdir -p $root/var/www/html/install-rpms/planetlab + # Exclude ourself (e.g., if rebuilding), the bootcd and + # bootmanager builds, and debuginfo RPMs. + rsync -a \ + --exclude='myplc-*' \ + --exclude='bootcd-*' --exclude='bootmanager-*' \ + --exclude='*-debuginfo-*' \ + $(find $RPM_RPMS_DIR -type f -and -name '*.rpm') \ + $root/var/www/html/install-rpms/planetlab/ + if [ -f $RPM_RPMS_DIR/yumgroups.xml ] ; then + install -D -m 644 $RPM_RPMS_DIR/yumgroups.xml \ + $root/var/www/html/install-rpms/planetlab/yumgroups.xml + fi + yum-arch $root/var/www/html/install-rpms/planetlab || : + createrepo $root/var/www/html/install-rpms/planetlab || : +fi + # XXX Build imprintable BootCD and BootManager images. # Install configuration file @@ -160,7 +181,6 @@ datadirs=( /var/www/html/boot /var/www/html/download /var/www/html/generated -/var/www/html/install-rpms /var/www/html/xml ) @@ -224,27 +244,6 @@ PLC_DATA=$usr_share/plc/$data #PLC_OPTIONS="-v" EOF -# Install node RPMs -if [ -n "$RPM_BUILD_DIR" ] ; then - echo "* Installing node RPMs" - RPM_RPMS_DIR=$(cd $(dirname $RPM_BUILD_DIR)/RPMS && pwd -P) - mkdir -p $data/var/www/html/install-rpms/planetlab - # Exclude ourself (e.g., if rebuilding), the bootcd and - # bootmanager builds, and debuginfo RPMs. - rsync -a \ - --exclude='myplc-*' \ - --exclude='bootcd-*' --exclude='bootmanager-*' \ - --exclude='*-debuginfo-*' \ - $(find $RPM_RPMS_DIR -type f -and -name '*.rpm') \ - $data/var/www/html/install-rpms/planetlab/ - if [ -f $RPM_RPMS_DIR/yumgroups.xml ] ; then - install -D -m 644 $RPM_RPMS_DIR/yumgroups.xml \ - $data/var/www/html/install-rpms/planetlab/yumgroups.xml - fi - yum-arch $data/var/www/html/install-rpms/planetlab || : - createrepo $data/var/www/html/install-rpms/planetlab || : -fi - # Bootstrap the system for quicker startup (and to populate the # PlanetLabConf tables from PLC, which may not be accessible # later). The bootstrap.xml configuration overlay configures the web