Update of /cvs/scoop/scoop/scripts
In directory lithium.sabren.com:/tmp/cvs-serv25559/scripts

Modified Files:
	get-scoop.sh 
Log Message:
And if I weren't on crack, I'd notice that someone submitted a better 
patch. I tested this at least.

-j



Index: get-scoop.sh
===================================================================
RCS file: /cvs/scoop/scoop/scripts/get-scoop.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** get-scoop.sh	11 May 2005 05:33:25 -0000	1.2
--- get-scoop.sh	11 May 2005 05:38:25 -0000	1.3
***************
*** 4,7 ****
  # Gets you the latest snapshot of Scoop with one command.
  # Warning: You need CVS installed and in the current path.
! cd ..
! cvs -z3 -d:pserver:anonymous at scoop.versionhost.com:/cvs/scoop update
--- 4,23 ----
  # Gets you the latest snapshot of Scoop with one command.
  # Warning: You need CVS installed and in the current path.
! # This script assumes that it is installed in ${scoop_root}/scripts
! 
! scripts="`dirname $0`"
! [ "${scripts}" = "." ] && scripts="`pwd`"
! scoop_root="`dirname ${scripts}`"
! 
! if [ "`basename ${scripts}`" = "scripts" -a -f ${scoop_root}/VERSION ] ; then
! 	cd ${scoop_root}
! 	cvs -z3 -d:pserver:anonymous at scoop.versionhost.com:/cvs/scoop update
! else
! 	cat << ERRORMSG
! ERROR: $0 must be run from the \${scoop_root}/scripts
! ERROR: directory.  (It needs to be able to find the CVS tree.)
! 
! ERRORMSG
! 	exit 1
! fi
!