mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
update version folder
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
eval JS_API=true
|
eval JS_API=true
|
||||||
|
|
||||||
|
cd `dirname $0`
|
||||||
|
|
||||||
show_help() {
|
show_help() {
|
||||||
echo "Usage: update-version.sh"
|
echo "Usage: update-version.sh"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -54,7 +56,6 @@ for PACKAGE in \
|
|||||||
ng2-alfresco-userinfo \
|
ng2-alfresco-userinfo \
|
||||||
ng2-alfresco-social
|
ng2-alfresco-social
|
||||||
do
|
do
|
||||||
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
|
||||||
echo "====== UPDATE PACKAGE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======"
|
echo "====== UPDATE PACKAGE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======"
|
||||||
find ././../ -type f -maxdepth 4 -name package.json -print0 | xargs -0 sed -i '' "s/\"${PACKAGE}\": \"[0-9]\\.[0-9]\\.[0-9]\"/\"${PACKAGE}\": \"${VERSION}\"/g"
|
find ././../ -type f -maxdepth 4 -name package.json -print0 | xargs -0 sed -i '' "s/\"${PACKAGE}\": \"[0-9]\\.[0-9]\\.[0-9]\"/\"${PACKAGE}\": \"${VERSION}\"/g"
|
||||||
done
|
done
|
||||||
@@ -64,7 +65,6 @@ if $JS_API == true; then
|
|||||||
for PACKAGE in \
|
for PACKAGE in \
|
||||||
alfresco-js-api
|
alfresco-js-api
|
||||||
do
|
do
|
||||||
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
|
||||||
echo "====== UPDATE PACKAGE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======"
|
echo "====== UPDATE PACKAGE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======"
|
||||||
find ././../ -type f -maxdepth 4 -name package.json -print0 | xargs -0 sed -i '' "s/\"${PACKAGE}\": \"[0-9]\\.[0-9]\\.[0-9]\"/\"${PACKAGE}\": \"${VERSION}\"/g"
|
find ././../ -type f -maxdepth 4 -name package.json -print0 | xargs -0 sed -i '' "s/\"${PACKAGE}\": \"[0-9]\\.[0-9]\\.[0-9]\"/\"${PACKAGE}\": \"${VERSION}\"/g"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user