diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2014-09-06 16:48:04 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2014-09-06 16:48:04 +0200 |
commit | df5037280ff79c0262e8b7dd563070c20f03ec10 (patch) | |
tree | 948e8488b60319fdb4fc3b51f4f50199062a8b9f /xbump | |
parent | 530f9f0082eb5919f166995e8e5b2e60ea9f8e4d (diff) | |
download | xtools-df5037280ff79c0262e8b7dd563070c20f03ec10.tar.gz xtools-df5037280ff79c0262e8b7dd563070c20f03ec10.tar.xz xtools-df5037280ff79c0262e8b7dd563070c20f03ec10.zip |
add xbump
Diffstat (limited to 'xbump')
-rwxr-xr-x | xbump | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xbump b/xbump new file mode 100755 index 0000000..e970a19 --- /dev/null +++ b/xbump @@ -0,0 +1,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" |