From e7cc7e7c6457e02ac0df7c87f853e0c5b826e99d Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 28 Oct 2015 15:50:09 +0000 Subject: use relative sources where possible This way it's a lot easier to test stuff without actually installing it Use BASH_SOURCE, which contains the path of the current script being executed. BASH_SOURCE is clearly a bashism, but it's cheaper than using dirname(1). Thanks to Gianfranco Costamagna for noticing how this bit could have be improved. Gbp-Dch: Short --- pbuilder-buildpackage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pbuilder-buildpackage') diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index daeb077..ae1a0a9 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -21,8 +21,8 @@ export LANG=C export LC_ALL=C set -e -. /usr/lib/pbuilder/pbuilder-checkparams -. /usr/lib/pbuilder/pbuilder-buildpackage-funcs +. "${BASH_SOURCE%/*}/pbuilder-checkparams" +. "${BASH_SOURCE%/*}/pbuilder-buildpackage-funcs" PACKAGENAME="$1" if [ ! -f "$PACKAGENAME" ]; then -- cgit v1.2.3