scripts can be run from anywhere

updated all scripts except update-version.sh to be able to
run from anywhere. Previously you had to be in the scripts
directory to run them.

fixes #361
This commit is contained in:
Bindu Wavell
2016-07-05 17:38:13 -06:00
parent 1173643c62
commit daafa2877b
4 changed files with 22 additions and 16 deletions

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
for PACKAGE in \
ng2-alfresco-core \
ng2-alfresco-datatable \
@@ -9,12 +11,12 @@ for PACKAGE in \
ng2-alfresco-upload \
ng2-alfresco-viewer
do
DESTDIR=././../ng2-components/${PACKAGE}
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== linking component: ${DESTDIR} ====="
npm link ${DESTDIR} --access public
done
cd ./../demo-shell-ng2
cd "$DIR/../demo-shell-ng2"
for PACKAGE in \
ng2-alfresco-core \
@@ -25,7 +27,7 @@ for PACKAGE in \
ng2-alfresco-upload \
ng2-alfresco-viewer
do
DESTDIR=././../ng2-components/${PACKAGE}
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== demo shell linking: ${PACKAGE} ====="
npm link ${PACKAGE}
done
done