]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2001-08-16 07:23:06 by doogie]
authordoogie <>
Thu, 16 Aug 2001 14:23:06 +0000 (06:23 -0800)
committerdoogie <>
Thu, 16 Aug 2001 14:23:06 +0000 (06:23 -0800)
Add $config_path and $lib_path at the top, and modify the code to use these
vars, instead of hard-coding the paths.

scripts/service.in

index 4a8b5cdc98ddb04d8a846f1d7eba1b23489c4ca5..60c966daee9ed80160e0187025d4186b110a6535 100755 (executable)
@@ -1,14 +1,18 @@
 #!/usr/bin/perl
-# $Id: service.in,v 1.39 2001/08/16 07:22:21 doogie Exp $
+# $Id: service.in,v 1.40 2001/08/16 07:23:06 doogie Exp $
 # ^ more or less ^
 #
 # Usage: service <code>.nn
 # Temps:  incoming/P<code>.nn
 
 use Mail::Address;
-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";
 
 # open(DEBUG,">&4");