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