summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-03-10 16:55:01 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-03-10 16:55:01 -0300
commitde28a019385b3a4465ffeadf39e51f0411771edf (patch)
treed6f9eb37d06b08bcc5364ccb8e3402c8ece57f2d
parentac5d8f7455cd1466737271c1ee9b4ae216339f41 (diff)
LibreRelease run a command before syncingv20110310
-rwxr-xr-xlibrerelease2
-rw-r--r--libretools.conf3
2 files changed, 5 insertions, 0 deletions
diff --git a/librerelease b/librerelease
index f592b9e..900cad3 100755
--- a/librerelease
+++ b/librerelease
@@ -25,6 +25,8 @@ source /etc/libretools.conf
custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf
[[ -e $custom_config ]] && source $custom_config
+[[ ! -z ${HOOKPRERELEASE} ]] && bash -c "${HOOKPRERELEASE}"
+
echo ":: Uploading packages..."
rsync --recursive \
--copy-links \
diff --git a/libretools.conf b/libretools.conf
index d8850bd..a3fd4b8 100644
--- a/libretools.conf
+++ b/libretools.conf
@@ -26,6 +26,9 @@ PATCHDIR=${WORKDIR}/abslibre/patches
## Parabola hostname (should be the same used on ssh_config
PARABOLAHOST=parabola
+## Run a command before releasing a package (ie. SSH connection, SSH tunnel, etc.)
+HOOKPRERELEASE="ssh -fN parabola"
+
## Server destination of libre packages
LIBREDESTDIR=/home/parabolavnx/parabolagnulinux.org/free
LIBRESRCDIR=/home/parabolavnx/parabolagnulinux.org/repo/pkgbuilds