From c34ac4ff95f046a2be5d0ab41c08b2734c47f602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Tue, 1 Feb 2011 10:21:39 -0300 Subject: librerelease now uploads into [staging] --- librerelease | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/librerelease b/librerelease index 01d8d81..4662ced 100755 --- a/librerelease +++ b/librerelease @@ -1,6 +1,6 @@ #!/bin/bash # Librerelease -# Uploads packages into free/ repo +# Uploads packages into [staging] # Copyright 2010 Nicolás Reynolds @@ -20,12 +20,12 @@ # You should have received a copy of the GNU General Public License # along with Parabola. If not, see . + + +source /etc/libretools.conf + custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf -if [ -e $custom_config ]; then - source $custom_config -else - source /etc/libretools.conf -fi +[[ -e $custom_config ]] && source $custom_config batchfile=/tmp/librerelease_batchfile.$$ # End Config @@ -48,16 +48,17 @@ function to_sftp() { echo "$@" >> $batchfile } -if [ ! -e ./PKGBUILD ]; then +[[ ! -e ./PKGBUILD ]] && { echo "PKGBUILD not found" - exit 1; -fi + exit 1 +} source PKGBUILD source /etc/makepkg.conf -if [ -e ~/.makepkg.conf ]; then source ~/.makepkg.conf; fi +[[ -e ~/.makepkg.conf ]] && source ~/.makepkg.conf +# Default package location PKGDEST=${PKGDEST:-.} SRCPKGDEST=${SRCPKGDEST:-.} -- cgit v1.2.2