[bump_version] Added a commit message for bump version
This commit is contained in:
@@ -8,7 +8,7 @@ else
|
|||||||
fi
|
fi
|
||||||
if [ "$1" == "" ]; then
|
if [ "$1" == "" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Syntax: $0 [-d] {new_version}"
|
echo "Syntax: $0 [-d] {new_version} [commit message]"
|
||||||
echo
|
echo
|
||||||
echo " -d : dry run, generate json and update properties but do not run git commands"
|
echo " -d : dry run, generate json and update properties but do not run git commands"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -34,7 +34,6 @@ else
|
|||||||
depends=$(echo "$value" | sed "s/,/ /g")
|
depends=$(echo "$value" | sed "s/,/ /g")
|
||||||
echo " Depends=$depends"
|
echo " Depends=$depends"
|
||||||
fi
|
fi
|
||||||
echo " " sed -i "s@#$name@$value@g" library.json
|
|
||||||
sed -i "s@#$name@$value@g" library.json
|
sed -i "s@#$name@$value@g" library.json
|
||||||
done < library.properties
|
done < library.properties
|
||||||
deps=""
|
deps=""
|
||||||
@@ -47,10 +46,11 @@ else
|
|||||||
sed -i "s@#dependencies@$deps@g" library.json
|
sed -i "s@#dependencies@$deps@g" library.json
|
||||||
sed -i "s/'/\"/g" library.json
|
sed -i "s/'/\"/g" library.json
|
||||||
if [ "$do" == "1" ]; then
|
if [ "$do" == "1" ]; then
|
||||||
|
echo "Pushing all"
|
||||||
git tag $1
|
git tag $1
|
||||||
git add library.properties
|
git add library.properties
|
||||||
git add library.json
|
git add library.json
|
||||||
git commit -m "Release $1"
|
git commit -m "Release $1 $2"
|
||||||
git push
|
git push
|
||||||
git push --tags
|
git push --tags
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user