Paulo Serra Filho | 1438ded | 2017-07-18 17:56:56 -0300 | [diff] [blame] | 1 | #!/bin/bash |
2 | read -p "Tag to apply: " TAG | ||||
3 | sed -i "/version/ s/=.*/=$TAG/g" ./src/library.properties | ||||
4 | sed -i '/version/ s/\([v\.]\)0\+\([[:digit:]]\+\)/\1\2/g' ./src/library.properties | ||||
5 | sed -i '/version/ s/KNOT-v//g' ./src/library.properties | ||||
6 | git add src/library.properties | ||||
7 | git commit -m "Update to version $TAG" | ||||
8 | git tag "$TAG" |