From 4c1aa8c1cdfaf8c920cf0d6eed273b1f3cb34765 Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernandez Date: Fri, 25 Mar 2011 07:41:51 -0700 Subject: librecommit usefull for everyone --- librecommit | 2 +- libretools.conf | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/librecommit b/librecommit index fc47d74..ffdc678 100755 --- a/librecommit +++ b/librecommit @@ -32,6 +32,6 @@ pkg=$pkgbase if [ ${#pkg} -eq 0 ]; then pkg=$pkgname; fi -hg commit $@ -m "Commiting libre package $pkg-$pkgver-$pkgrel" -v || exit 1 +$COMMITCMD commit $@ -m "Commiting libre package $pkg-$pkgver-$pkgrel" -v || exit 1 exit 0 diff --git a/libretools.conf b/libretools.conf index b2ff53c..ab8fb07 100644 --- a/libretools.conf +++ b/libretools.conf @@ -36,6 +36,12 @@ LIBRESRCDIR=/home/parabolavnx/parabolagnulinux.org/repo/pkgbuilds ## ABSLibre ABSLIBREGIT=http://projects.parabolagnulinux.org/abslibre.git/ +## Commit Command +## Should be git or hg +## Uncomment only one of those +#COMMITCMD=git +#COMMITCMD=hg + # Recommended SSH Config # SSH host, it's better if you have it configured on ~/.ssh/config # with ControlMaster auto (and a shell opened somewhere else) @@ -56,7 +62,7 @@ ABSLIBREGIT=http://projects.parabolagnulinux.org/abslibre.git/ # Checks if vars aren't empty # for VAR in CHROOTDIR CHROOT CHCOPY CACHEDIR PARABOLAHOST LIBREDESTDIR \ - LIBRESRCDIR BLACKLIST WORKDIR PATCHDIR REPOS ARCHES ABSLIBREGIT; do + LIBRESRCDIR BLACKLIST WORKDIR PATCHDIR REPOS ARCHES ABSLIBREGIT COMMITCMD; do [[ -z ${!VAR} ]] && { echo "Configure $VAR var in $0" @@ -64,4 +70,4 @@ for VAR in CHROOTDIR CHROOT CHCOPY CACHEDIR PARABOLAHOST LIBREDESTDIR \ } done -source libremessages \ No newline at end of file +source /usr/bin/libremessages \ No newline at end of file -- cgit v1.2.3-54-g00ecf