release script for unique version

This commit is contained in:
Mario Romano
2016-07-04 19:03:32 +01:00
parent 3b0b679cca
commit 13ec61d950
11 changed files with 81 additions and 19 deletions

16
scripts/update-version.sh Executable file
View 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"