diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-01-04 11:36:03 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-01-04 11:36:03 -0500 |
commit | f9558ffccc843f1968e969e27555abb7ca813e11 (patch) | |
tree | 6f42323df8e4b809a18563191ad1ba8c20582306 /src/libretools.conf | |
parent | 5a49b2efaa98efb2eeec97629a01c967d51c842f (diff) |
move checks from libretools.conf to conf.sh
Diffstat (limited to 'src/libretools.conf')
-rw-r--r-- | src/libretools.conf | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/src/libretools.conf b/src/libretools.conf index f3e567a..b1a6e6e 100644 --- a/src/libretools.conf +++ b/src/libretools.conf @@ -91,34 +91,15 @@ HOOKPRERELEASE="ssh -fN parabola" TORUPATH=/var/lib/libretools/toru ################################################################################ -# This probably shouldn't be in a .conf file... # +# Stub for old programs; wouldn't normally be in a .conf file # ################################################################################ if [[ -z ${INCLUDE_CONF_SH:-} ]]; then - -LIBREUSER="${SUDO_USER:-$USER}" -LIBREHOME="$(eval echo ~$LIBREUSER)" -if [[ -z ${XDG_CONFIG_HOME:-} ]]; then - export XDG_CONFIG_HOME="${LIBREHOME}/.config" -fi -if [[ -e "$XDG_CONFIG_HOME/libretools/libretools.conf" ]]; then - . "$XDG_CONFIG_HOME/libretools/libretools.conf" -fi - -ret=0 -for VAR in PARABOLAHOST LIBREDESTDIR \ - BLACKLIST WORKDIR REPOS ARCHES ABSLIBREGIT \ - COMMITCMD DIFFTOOL FULLBUILDCMD SIGEXT SIGID; do - if [[ -z ${!VAR} ]]; then - echo "Configure $VAR var in /etc/libretools.conf" - ret=1 + . /usr/share/libretools/conf.sh + if [[ -e "$XDG_CONFIG_HOME/libretools/libretools.conf" ]]; then + . "$XDG_CONFIG_HOME/libretools/libretools.conf" fi -done -if [[ $ret != 0 ]]; then - exit 1 -fi -unset ret - -. /usr/bin/libremessages + check_conf_libretools || exit $? + . /usr/bin/libremessages fi |