Mercurial > hg > aboriginal
view sources/toys/nightly.sh @ 788:fb3484d9764d
Since nightly.sh is checked in to the repository, having it update the FWL repository is just too fiddly. Both that and uploading the result is the job of a wrapper script that calls this one.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 05 Jul 2009 23:48:07 -0500 |
parents | 7f0e808e3be0 |
children | dde700454fbe |
line wrap: on
line source
#!/bin/bash #export PREFERRED_MIRROR=http://impactlinux.com/fwl/mirror #FWL_STABLE=tip TOP="$(pwd)" SNAPSHOT_DATE=$(date +"%Y-%m-%d") TEMPDIR="$TOP" rm -rf triage.* build # Update each package from repository, generate alt-tarball, and build with # that package. [ -z "$PACKAGES" ] && PACKAGES="busybox uClibc linux all" for PACKAGE in $PACKAGES do export USE_UNSTABLE="$PACKAGE" # Handle special package name "all" if [ "$PACKAGE" == "all" ] then USE_UNSTABLE=busybox,uClibc,linux # Update package from repository else cd "$TOP/../$PACKAGE" echo updating "$PACKAGE" git pull git archive master --prefix=$PACKAGE/ | bzip2 > \ "$TOP"/packages/alt-$PACKAGE-0.tar.bz2 fi # Build everything with unstable version of that package, and stable # version of everything else (including build scripts). cd "$TOP" FORK=1 CROSS_COMPILERS_EH=i686 NATIVE_COMPILERS_EH=1 nice -n 20 ./buildall.sh FORK=1 ./smoketest-all.sh --logs > build/logs/status.txt DESTDIR="$TOP/../snapshots/$PACKAGE/$SNAPSHOT_DATE" rm -rf "$DESTDIR" mkdir -p "$DESTDIR" mv build/logs build/*.tar.bz2 "$DESTDIR" mv build "$TEMPDIR/triage.$PACKAGE" done