#!/bin/bash

export CVS_RSH=/usr/bin/rsh 
export CVSREAD="" 
export BINDIR=$HOME/bin

echo "cvs checkout: build scripts"
export CVSROOT=":ext:source:/home/routefree/gba/depot"
cd $HOME/nc
cvs -q checkout -D now sw/tools/build/cygwin

#
# The second tar pipeline is just a hokey way to get the list of names
# of the script files and chmod them executable
#
echo "update build scripts in ~/bin"
(cd sw/tools/build/cygwin; tar cf - --exclude CVS .) | (cd $BINDIR; tar xf -)
(cd sw/tools/build/cygwin; tar cf - --exclude CVS .) | tar tf - | (cd $BINDIR; xargs chmod u+x)
