1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-25 13:55:47 -05:00

feat(bump.sh): Version bumping script

This commit is contained in:
Michael Carlberg 2016-06-14 05:39:17 +02:00
parent 29d284ff12
commit 61e3f6716c

10
bump.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
# shellcheck disable=SC2016
tag_prev=$(git tag -l | tail -2 | head -1)
tag_curr=$(git tag -l | tail -1)
sed -r "s/${tag_prev}/${tag_curr}/g" -i README.md CMakeLists.txt contrib/lemonbuddy.aur/PKGBUILD contrib/lemonbuddy.aur/.SRCINFO
git add README.md CMakeLists.txt contrib/lemonbuddy.aur/PKGBUILD contrib/lemonbuddy.aur/.SRCINFO
git commit -m "build: Bump version to ${tag_curr}"
git show HEAD