Changeset a70441f in git for doc/doc2idx.pl
- Timestamp:
- Apr 27, 2000, 12:07:30 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- e5f8ae07e0b41bb1b0e5aaaac2dad244e619d563
- Parents:
- eec9b2d2a332c04f20d743bdd4ccc107766fbc61
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/doc2idx.pl
reec9b2 ra70441f 1 1 #!/usr/local/bin/perl 2 # $Id: doc2idx.pl,v 1. 1 1999-07-22 13:54:21obachman Exp $2 # $Id: doc2idx.pl,v 1.2 2000-04-27 10:07:19 obachman Exp $ 3 3 ################################################################### 4 4 # Computer Algebra System SINGULAR … … 32 32 open (URL, "<$ARGV[1]") || die "Can't open $ARGV[1]: $!\n"; 33 33 $db_file = $ARGV[2]; 34 $db_file = $1 if ($db_file =~ /(.*)\..*$/); 35 dbmopen (%CHK, $db_file, 0666) || 36 die "Error: can't open chksum data base $db_file"; 34 unless ($return = do $db_file) 35 { 36 die "couldn't parse $db_file: $@" if $@; 37 die "couldn't do $db_file: $!" unless defined $return; 38 die "couldn't run $db_file" unless $return; 39 } 37 40 38 41 # fill hashes … … 75 78 for $entry (sort keys %$index) 76 79 { 77 print "$entry\t$index->{$entry}->{Node}\t$index->{$entry}->{Url}\t$CH K{$entry}\n";80 print "$entry\t$index->{$entry}->{Node}\t$index->{$entry}->{Url}\t$CHECKSUMS{$entry}\n"; 78 81 } 79 82 80 close(%CHK);81 83
Note: See TracChangeset
for help on using the changeset viewer.