mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
release script for unique version
This commit is contained in:
16
scripts/update-version.sh
Executable file
16
scripts/update-version.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
cd `dirname $0`
|
||||
|
||||
VERSION=$1
|
||||
|
||||
if [[ "${VERSION}" == "" ]]
|
||||
then
|
||||
echo "Version number required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "====== RENAMING 0.0.0-PLACEHOLDER to N.N.N version ======"
|
||||
find ././../ng2-components/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/0\\.0\\.0-PLACEHOLDER/${VERSION}/g"
|
Reference in New Issue
Block a user