summaryrefslogtreecommitdiff
path: root/librecommit
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2010-10-16 17:45:56 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2010-10-16 17:45:56 -0500
commit35f89bd78ab15b4345037f0649f8598aa92ddca3 (patch)
tree8fe27b3afdea226aa9dcbdfa25a0f7e9d9b01631 /librecommit
parent6273f6806f209677cee954f6a211167b62d1a7ca (diff)
parent3a3777106ced607cf7c8bfdf7ddaddd4cffad5c5 (diff)
Merge branch 'master' of parabolagnulinux.org:~/projects/libretools
Diffstat (limited to 'librecommit')
-rwxr-xr-xlibrecommit13
1 files changed, 13 insertions, 0 deletions
diff --git a/librecommit b/librecommit
new file mode 100755
index 0000000..a1c1d01
--- /dev/null
+++ b/librecommit
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ ! -e PKGBUILD ]; then exit 1; fi
+
+source PKGBUILD
+
+pkg=$pkgbase
+
+if [ ${#pkg} -eq 0 ]; then pkg=$pkgname; fi
+
+hg commit $@ -m "Commiting libre package $pkg-$pkgver-$pkgrel" -v || exit 1
+
+exit 0