From: doogie <> Date: Thu, 16 Aug 2001 14:25:53 +0000 (-0800) Subject: [project @ 2001-08-16 07:25:53 by doogie] X-Git-Tag: release/2.6.0~1112 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=31753393e4492df44d6ed47b65d58f750843426a;p=debbugs.git [project @ 2001-08-16 07:25:53 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/expire.in b/scripts/expire.in index cbc5d467..e851f94b 100755 --- a/scripts/expire.in +++ b/scripts/expire.in @@ -1,11 +1,16 @@ #!/usr/bin/perl -# $Id: expire.in,v 1.6 2000/10/07 17:27:13 joy Exp $ +# $Id: expire.in,v 1.7 2001/08/16 07:25:53 doogie Exp $ # Load modules and set envirnment -require('/etc/debbugs/config'); -require('/usr/lib/debbugs/errorlib'); use File::Copy; -$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("$config_path/text"); +require("$lib_path/errorlib"); +$ENV{'PATH'} = $lib_path.':'.$ENV{'PATH'}; + chdir("$gSpoolDir") || die "chdir spool: $!\n"; #global variables