updated the updateproject helper script to work from any call location

This commit is contained in:
Jeremy Wall 2009-01-02 20:05:33 -06:00
parent ef19bca09c
commit 6f67cc1463

View File

@ -28,6 +28,8 @@ do
esac esac
done done
MYDIR=$(dirname $0)
if [[ -z $DIRNAME ]] if [[ -z $DIRNAME ]]
then then
echo "No -d option was present. You must provide a Project path."; echo "No -d option was present. You must provide a Project path.";
@ -42,13 +44,13 @@ echo "Setting up in project: ${DIRNAME}"
cd $DIRNAME cd $DIRNAME
#set up the directory structure #set up the directory structure
if [[ ! -d ext ]] if [[ ! -d $DIRNAME/ext ]]
then then
mkdir ext mkdir $DIRNAME/ext
fi fi
#copy the files we need for initial setup echo copying the javascript test libraries
cp -r -f ~/sandbox/Test-TAP/lib/Test ext/ cp -r -f $MYDIR/../lib/Test $DIRNAME/ext/
#now go back to where we started #now go back to where we started
cd $WORKING cd $WORKING