From de28a019385b3a4465ffeadf39e51f0411771edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Thu, 10 Mar 2011 16:55:01 -0300 Subject: LibreRelease run a command before syncing --- librerelease | 2 ++ libretools.conf | 3 +++ 2 files changed, 5 insertions(+) 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 -- cgit v1.2.3