Public feed #529121

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-06-01 20:01 UTC
rendered paste body
#!/bin/bash
set -e

#use $(), not backticks.
export CVSROOT=:ext:$(whoami)@cvs:/links/cvs
export CVS_RSH=ssh

# don't use cat
grep -v \# cvs.info | while read line; do
    echo $line
    cvs checkout -d $line
    dir="${line%% *}" # First field delimited by whitespace, no pipes :)
    if [[ -r $dir/build.xml ]]; then
	cd $dir
	ant -diagnostics clean dist
	cd - # return to previous directory
    fi
done

wait
echo Finished
exit 0