From 6f67cc1463ea2a2d3e10b4bd48949c20ec6c629d Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Fri, 2 Jan 2009 20:05:33 -0600 Subject: [PATCH] updated the updateproject helper script to work from any call location --- scripts/updateproject.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/updateproject.sh b/scripts/updateproject.sh index b6381d0..eca027b 100755 --- a/scripts/updateproject.sh +++ b/scripts/updateproject.sh @@ -28,6 +28,8 @@ do esac done +MYDIR=$(dirname $0) + if [[ -z $DIRNAME ]] then echo "No -d option was present. You must provide a Project path."; @@ -42,13 +44,13 @@ echo "Setting up in project: ${DIRNAME}" cd $DIRNAME #set up the directory structure -if [[ ! -d ext ]] +if [[ ! -d $DIRNAME/ext ]] then - mkdir ext + mkdir $DIRNAME/ext fi -#copy the files we need for initial setup -cp -r -f ~/sandbox/Test-TAP/lib/Test ext/ +echo copying the javascript test libraries +cp -r -f $MYDIR/../lib/Test $DIRNAME/ext/ #now go back to where we started cd $WORKING