Mercurial > hg > aboriginal
changeset 851:b1ab9e87aff5
Move the cron job script into sources/more.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 15 Oct 2009 21:02:35 -0500 |
parents | e0879d661b55 |
children | 6ecee01bffa6 |
files | sources/more/cronjob.sh sources/toys/nightly.sh |
diffstat | 2 files changed, 54 insertions(+), 54 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/more/cronjob.sh Thu Oct 15 21:02:35 2009 -0500 @@ -0,0 +1,54 @@ +#!/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. + +for PACKAGE in none $PACKAGES all +do + export USE_UNSTABLE="$PACKAGE" + + # Handle special package name "all" + + if [ "$PACKAGE" == "none" ] + then + USE_UNSTABLE= + elif [ "$PACKAGE" == "all" ] + then + [ -z "$PACKAGES" ] && continue + + USE_UNSTABLE="$(echo "$PACKAGES" | sed 's/ /,/')" + + # 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 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
--- a/sources/toys/nightly.sh Wed Oct 14 15:55:42 2009 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ -#!/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. - -for PACKAGE in none $PACKAGES all -do - export USE_UNSTABLE="$PACKAGE" - - # Handle special package name "all" - - if [ "$PACKAGE" == "none" ] - then - USE_UNSTABLE= - elif [ "$PACKAGE" == "all" ] - then - [ -z "$PACKAGES" ] && continue - - USE_UNSTABLE="$(echo "$PACKAGES" | sed 's/ /,/')" - - # 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 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