From: doogie <> Date: Thu, 16 Aug 2001 14:11:04 +0000 (-0800) Subject: [project @ 2001-08-16 07:11:04 by doogie] X-Git-Tag: release/2.6.0~1119 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=be38bdf58a0b8ef9b7438f1a990340823fd3d317;p=debbugs.git [project @ 2001-08-16 07:11:04 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/process.in b/scripts/process.in index cdf30c5c..811189b7 100755 --- a/scripts/process.in +++ b/scripts/process.in @@ -1,12 +1,17 @@ #!/usr/bin/perl -# $Id: process.in,v 1.34 2001/08/16 07:07:53 doogie Exp $ +# $Id: process.in,v 1.35 2001/08/16 07:11:04 doogie Exp $ # # Usage: process nn # Temps: incoming/Pnn use Mail::Address; -require( '/etc/debbugs/config' ); -require( '/usr/lib/debbugs/errorlib' ); +$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'; #open(DEBUG,"> /tmp/debbugs.debug");