diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-01 10:21:39 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2011-02-01 10:21:39 -0300 |
commit | c34ac4ff95f046a2be5d0ab41c08b2734c47f602 (patch) | |
tree | ee0bab8e71c0e302050e356ec09c9b893312e126 | |
parent | be895aa478a46f8127961176a960492adfbde0bb (diff) |
librerelease now uploads into [staging]
-rwxr-xr-x | librerelease | 21 |
1 files 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 <http://www.gnu.org/licenses/>. + + +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:-.} |