Mercurial > hg > aboriginal
changeset 852:6ecee01bffa6
Update paths and comments in cronjob.sh, rename "none" to "stable", minor cleanup to logging.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 15 Oct 2009 21:25:30 -0500 |
parents | b1ab9e87aff5 |
children | 330442bbed6e |
files | sources/more/buildall.sh sources/more/cronjob.sh |
diffstat | 2 files changed, 39 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/more/buildall.sh Thu Oct 15 21:02:35 2009 -0500 +++ b/sources/more/buildall.sh Thu Oct 15 21:25:30 2009 -0500 @@ -57,4 +57,8 @@ sources/more/native-static-build.sh $i -sources/more/smoketest-all.sh --logs +# Create a file containing simple pass/fail results for all architectures. + +sources/more/smoketest-all.sh --logs | tee build/logs/status.txt + +
--- a/sources/more/cronjob.sh Thu Oct 15 21:02:35 2009 -0500 +++ b/sources/more/cronjob.sh Thu Oct 15 21:25:30 2009 -0500 @@ -1,7 +1,35 @@ #!/bin/bash -#export PREFERRED_MIRROR=http://impactlinux.com/fwl/mirror -#FWL_STABLE=tip +# This script is run by a nightly cron job to build snapshots using the current +# build scripts from the repository. + +# It builds a "stable" version of each architecture using stable version of all +# packages (according to the current ./download.sh), and then iterates through +# the packages listed in $PACKAGES grabbing a repository snapshot of each one +# and building each architecture again. Finally, it builds an "all" version +# using the unstable versions of every listed package simultaneously. + +# The cron job is run under a dedicated user, and invokes this script via the +# following code snippet: + +# cd firmware +# hg pull -u +# export PREFERRED_MIRROR=http://impactlinux.com/fwl/mirror +# export PACKAGES="busybox uClibc linux" +# sources/toys/nightly.sh >/dev/null 2>/dev/null </dev/null +# /rsync_to_server.sh + +# The dedicated user's home directory has ~/{firmware,busybox,uClibc,linux} +# directories at the top level, containing appropriate repositories. +# The firmware repository is updated externally (since you don't want to run +# a script out of a repository you're updating). The other three ones updated +# by this script. (It currently only understands git repositories, out of +# sheer laziness.) +# +# The ~/snapshot directory is used to store output, and then rsynced up to +# the server + +# This script calls sources/more/buildall.sh TOP="$(pwd)" SNAPSHOT_DATE=$(date +"%Y-%m-%d") @@ -13,13 +41,13 @@ # Update each package from repository, generate alt-tarball, and build with # that package. -for PACKAGE in none $PACKAGES all +for PACKAGE in stable $PACKAGES all do export USE_UNSTABLE="$PACKAGE" # Handle special package name "all" - if [ "$PACKAGE" == "none" ] + if [ "$PACKAGE" == "stable" ] then USE_UNSTABLE= elif [ "$PACKAGE" == "all" ] @@ -42,9 +70,9 @@ # version of everything else (including build scripts). cd "$TOP" - FORK=1 nice -n 20 ./buildall.sh + FORK=1 nice -n 20 sources/more/buildall.sh - FORK=1 ./smoketest-all.sh --logs > build/logs/status.txt + # Move results to output directory. DESTDIR="$TOP/../snapshots/$PACKAGE/$SNAPSHOT_DATE" rm -rf "$DESTDIR"