summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2010-10-15 21:33:40 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2010-10-15 21:33:40 -0300
commit3a3777106ced607cf7c8bfdf7ddaddd4cffad5c5 (patch)
tree4f85121ae17004cef9eb643f0ac395833e2d6c75
parent9880e8839a9ea27f2b8f5df21e52a7f1199a4546 (diff)
librecommit, a tool for commiting sources into a CVS tree (only mercurial ATM)
-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