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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user