]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2001-08-16 17:37:01 by doogie]
authordoogie <>
Fri, 17 Aug 2001 00:39:03 +0000 (16:39 -0800)
committerdoogie <>
Fri, 17 Aug 2001 00:39:03 +0000 (16:39 -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/mailsummary.in
scripts/summary.in

index 53c94c128073edeb34de4b867ad2c0ce7d1d456d..3b5b4025d2af363f71e08796bd379de2fbaed419 100755 (executable)
@@ -1,9 +1,13 @@
 #!/usr/bin/perl
-# $Id: mailsummary.in,v 1.6 2000/10/14 21:01:22 joy Exp $
+# $Id: mailsummary.in,v 1.7 2001/08/16 17:39:03 doogie Exp $
 
-require( '/etc/debbugs/config' );
+$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'};
 
-$ENV{'PATH'} = '/usr/lib/debbugs:'.$ENV{'PATH'};
 chdir("$gSpoolDir") || die "chdir spool: $!\n";
 
 #open(DEBUG,">&4");
@@ -50,7 +54,7 @@ $gBug reports is posted periodically - this is a partial list only!)
     die "urgk, wrong argument @ARGV";
 }
 
-$v=`/usr/lib/debbugs/summary $ARGV[0]`; $? && die "undone failed $?: $!\n";
+$v=`$lib_path/summary $ARGV[0]`; $? && die "undone failed $?: $!\n";
 
 $v= $vdef if $v eq '';
 exit 0 if $v eq '';
index 20cba4602c0fe97482be6263ca3b8033ca3e50aa..a84ca7934b6779ecf41db8941e57c7e3c5b7fec2 100755 (executable)
@@ -1,8 +1,13 @@
 #!/usr/bin/perl
-# $Id: summary.in,v 1.3 2001/04/24 19:10:26 doogie Exp $
+# $Id: summary.in,v 1.4 2001/08/16 17:37:01 doogie Exp $
+
+$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'};
 
-require('/etc/debbugs/config');
-require('/usr/lib/debbugs/errorlib');
 chdir("$gSpoolDir") || die "chdir spool: $!\n";
 
 #open(DEBUG,">&4");