about summary refs log tree commit diff
path: root/xbump
diff options
context:
space:
mode:
Diffstat (limited to 'xbump')
-rwxr-xr-xxbump10
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"