about summary refs log tree commit diff
path: root/xbump
blob: e970a195fa0b16e7ad73bc3a5fae69675582f3a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# xbump PKGNAME [git commit options] - git commit a version bump

cd ~/xbps-packages

pkg=$1; shift
version=$(./xbps-src show "$pkg" | sed -n '/version/s/[^:]*:[\t]*//p')

git add srcpkgs/"$pkg" &&
git commit -m "$pkg: update to $version." "$@" srcpkgs/"$pkg"