[Coco] nitros9 daily clean build script for Gene

Tormod Volden lists.tormod at gmail.com
Wed Oct 22 16:37:09 EDT 2014


I suggested this so many times, but here it is on a silver plate, so
you have no escape :) Untested, so please tell if there is something
wrong, or if there is any reason you cannot use this.

Tormod


#!/bin/sh
# NitrOS-9 daily clean build script
# expects an existing repo in a "nitros9" directory
set -e
cd nitros9
if ! hg incoming; then
    echo "No new changes to pull"
    exit 1
fi
hg pull
hg update
cd ..
BUILD_DIR=nitros9-$(date +%Y-%m-%d-%H-%M)
hg clone nitros9 $BUILD_DIR
cd $BUILD_DIR
make dsk dskcopy
cd ..

#only for Gene:
chown -R gene:www-data $BUILD_DIR


More information about the Coco mailing list