#!/bin/sh if [ -z "$BOOTCLASSPATH" ] ; then echo "$0 WARNING: You may need to set the BOOTCLASSPATH..." fi #where is the project's code kept export CVSROOT=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/robocode #ideally we'd also have a tag that we could pull, rather than head. #export CVSTAG= if [ -d robocode ] ; then #start clean (done before up so as to reduce the ? lines) find robocode -name \*\.class | xargs rm cd robocode cvs -qz3 up -dAP else cvs -qz3 co robocode cd robocode fi #Sadly robocode doesn't give us a Makefile or anything, but then if it did, we'd # spend more time in Make than in Jikes.... The following takes 3 seconds on my # workstation. #generate an input list find robocode -name \*.java > robocode.sources #ok, we'll assume for now that jikes lives in src, if you built with a different objdir, # hmm, should handle that sometime, not to mention convert this script to a Makefile. #the +Z0 is just to keep from filling the screen with output, like the -q above on cvs ../../../src/jikes +Z0 @robocode.sources echo jikes return code $? #figure out what we built find . -name \*.class > robocode.classes #and compare it to what we expected to build, also check the input, # just in case the reasons the output check failed was because of # the input changing. sha1sum -c <