From 5c41d0eb4c7034998d9718f89e12f44fe872ab9a Mon Sep 17 00:00:00 2001 From: Andrew Fyfe Date: Mon, 28 May 2007 20:49:28 +0100 Subject: Substitute config directory in scripts. Signed-off-by: Andrew Fyfe --- scripts/makepkg.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/makepkg.in') diff --git a/scripts/makepkg.in b/scripts/makepkg.in index 0743b8fc..278050d7 100644 --- a/scripts/makepkg.in +++ b/scripts/makepkg.in @@ -38,8 +38,8 @@ startdir=$(pwd) # Only use ABSROOT if we haven't been passed a SRCROOT on the command line. if [ -z "$SRCROOT" ]; then - if [ -r /etc/abs/abs.conf ]; then - source /etc/abs/abs.conf + if [ -r @SYSCONFDIR@/abs/abs.conf ]; then + source @SYSCONFDIR@/abs/abs.conf fi if [ -r ~/.abs.conf ]; then source ~/.abs.conf @@ -649,8 +649,8 @@ _PKGDEST=${PKGDEST} _SRCDEST=${SRCDEST} # Source makepkg.conf; fail if it is not found -if [ -r /etc/makepkg.conf ]; then - source /etc/makepkg.conf +if [ -r @SYSCONFDIR@/makepkg.conf ]; then + source @SYSCONFDIR@/makepkg.conf else error "$(gettext "/etc/makepkg.conf not found. cannot continue")" exit 1 # $E_CONFIG_ERROR # TODO: error codes -- cgit v1.2.3-24-g4f1b