From db9573ce419e867352c08aaefb1373627b88a25c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 31 Dec 2019 13:35:58 +0000 Subject: [PATCH] catacomb-import-update: Prepare for out-of-tree builds The input directory should be relative to $0, not to `.'. Signed-off-by: Ian Jackson --- catacomb-import-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catacomb-import-update b/catacomb-import-update index de96ca9..792e86c 100755 --- a/catacomb-import-update +++ b/catacomb-import-update @@ -879,7 +879,8 @@ die "usage: $PROG --import|--convert\n" $DOCONVERT = $1 eq 'convert'; if ($DOCONVERT) { - $DONOR_DIR = $DONOR_IMPORT_DIR; + $DONOR_DIR = $0; + $DONOR_DIR =~ s{[^/]+$}{$DONOR_IMPORT_DIR} or die "$0 ?"; } else { $DONOR_DIR = "../catacomb"; } -- 2.30.2