summaryrefslogtreecommitdiff
path: root/librerelease
diff options
context:
space:
mode:
Diffstat (limited to 'librerelease')
-rwxr-xr-xlibrerelease9
1 files changed, 7 insertions, 2 deletions
diff --git a/librerelease b/librerelease
index 900cad3..8160833 100755
--- a/librerelease
+++ b/librerelease
@@ -23,11 +23,16 @@
source /etc/libretools.conf
custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf
+
+usage () {
+ printf "$(gettext "Usage: %s")" "$0"
+ echo
+ printf "$(gettext "This script")"
[[ -e $custom_config ]] && source $custom_config
[[ ! -z ${HOOKPRERELEASE} ]] && bash -c "${HOOKPRERELEASE}"
-echo ":: Uploading packages..."
+msg "Uploading packages..."
rsync --recursive \
--copy-links \
--hard-links \
@@ -39,7 +44,7 @@ rsync --recursive \
${WORKDIR}/staging \
${PARABOLAHOST}:${LIBREDESTDIR}/ || exit 1
-echo ":: Removing packages from local [staging]"
+msg "Removing packages from local [staging]"
find ${WORKDIR}/staging/ -iname "*.pkg.tar.*" -delete
exit 0