]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2001-08-16 17:51:33 by doogie]
authordoogie <>
Fri, 17 Aug 2001 00:51:33 +0000 (16:51 -0800)
committerdoogie <>
Fri, 17 Aug 2001 00:51:33 +0000 (16:51 -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/rebuild.in

index 6c869bf92b6e7df4a2554269d92faf9442655667..57ca1ed33a2214790b2465b5f4aa4fb4e3b40493 100755 (executable)
@@ -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 {