]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-05-25 15:51:51 by cjwatson]
authorcjwatson <>
Sun, 25 May 2003 22:51:51 +0000 (14:51 -0800)
committercjwatson <>
Sun, 25 May 2003 22:51:51 +0000 (14:51 -0800)
Use index.db when indexing the db-h tree.

scripts/rebuild.in

index fd1dbfbc6b7e48525cfc0a8928ec2b0901e03943..2347366d454c09b8bbb089cae250cc33478fbdc5 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# $Id: rebuild.in,v 1.9 2003/05/25 13:13:18 cjwatson Exp $
+# $Id: rebuild.in,v 1.10 2003/05/25 15:51:51 cjwatson Exp $
 
 # Load modules and set environment
 use File::Copy;
@@ -16,8 +16,10 @@ chdir("$gSpoolDir") || die "chdir spool: $!\n";
 $debug = 0;
 
 @ARGV==0 and &quit( "no archive given on the commandline" );
-$archive= shift(@ARGV);
-open IDXFILE, "> index.$archive" or &quit( "trying to reset index file: $!" );
+my $archive = shift(@ARGV);
+my $index = "index.$archive";
+$index = 'index.db' if $archive eq 'db-h';
+open IDXFILE, "> $index" or &quit( "trying to reset index file: $!" );
 
 #get list of bugs (ie, status files)
 my @files;