mirror of
https://github.com/zaphar/test-tap.git
synced 2025-07-21 20:19:49 -04:00
updated the updateproject helper script to work from any call location
This commit is contained in:
parent
ef19bca09c
commit
6f67cc1463
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user