From: doogie <> Date: Fri, 17 Aug 2001 00:51:33 +0000 (-0800) Subject: [project @ 2001-08-16 17:51:33 by doogie] X-Git-Tag: release/2.6.0~1108 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=76a3f8ea73b839c18981c1b3865de493019b282f;p=debbugs.git [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. --- diff --git a/scripts/rebuild.in b/scripts/rebuild.in index 6c869bf9..57ca1ed3 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 {