From 76a3f8ea73b839c18981c1b3865de493019b282f Mon Sep 17 00:00:00 2001 From: doogie <> Date: Thu, 16 Aug 2001 16:51:33 -0800 Subject: [PATCH] [project @ 2001-08-16 17:51:33 by doogie] Add $config_path and $lib_path at the top, and modify the code to use these vars, instead of hard-coding the paths. --- scripts/rebuild.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/rebuild.in b/scripts/rebuild.in index 6c869bf..57ca1ed 100755 --- a/scripts/rebuild.in +++ b/scripts/rebuild.in @@ -1,11 +1,15 @@ #!/usr/bin/perl -w -# $Id: rebuild.in,v 1.3 2000/10/07 17:27:13 joy Exp $ +# $Id: rebuild.in,v 1.4 2001/08/16 17:51:33 doogie Exp $ # Load modules and set envirnment use File::Copy; -require('/etc/debbugs/config'); -require('/usr/lib/debbugs/errorlib'); -$ENV{'PATH'} = '/usr/lib/debbugs:'.$ENV{'PATH'}; +$config_path = '/org/bugs.debian.org/etc'; +$lib_path = '/org/bugs.debian.org/scripts'; + +require("$config_path/config"); +require("$lib_path/errorlib"); +$ENV{'PATH'} = $lib_path.':'.$ENV{'PATH'}; + chdir("$gSpoolDir") || die "chdir spool: $!\n"; sub readreport { -- 2.39.2