summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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