diff options
author | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-03-25 07:09:23 -0700 |
---|---|---|
committer | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-03-25 07:09:23 -0700 |
commit | 691baba22e7fb1fe47005558ca92e540566fe383 (patch) | |
tree | 8fc6367afbe472c51664ff2edf0310715b8712dd /librerelease | |
parent | 5f47cf2a8f096f284bb1a9278fa676960ae65847 (diff) |
Added libremessages and format in scripts
Diffstat (limited to 'librerelease')
-rwxr-xr-x | librerelease | 9 |
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 |