Changeset a70441f in git for doc/doc2idx.pl


Ignore:
Timestamp:
Apr 27, 2000, 12:07:30 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e5f8ae07e0b41bb1b0e5aaaac2dad244e619d563
Parents:
eec9b2d2a332c04f20d743bdd4ccc107766fbc61
Message:
Windows and gcc 2.95 porting


git-svn-id: file:///usr/local/Singular/svn/trunk@4273 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/doc2idx.pl

    reec9b2 ra70441f  
    11#!/usr/local/bin/perl
    2 # $Id: doc2idx.pl,v 1.1 1999-07-22 13:54:21 obachman Exp $
     2# $Id: doc2idx.pl,v 1.2 2000-04-27 10:07:19 obachman Exp $
    33###################################################################
    44#  Computer Algebra System SINGULAR
     
    3232open (URL, "<$ARGV[1]") || die "Can't open $ARGV[1]: $!\n";
    3333$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";
     34unless ($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}
    3740
    3841# fill hashes
     
    7578for $entry (sort keys %$index)
    7679{
    77   print "$entry\t$index->{$entry}->{Node}\t$index->{$entry}->{Url}\t$CHK{$entry}\n";
     80  print "$entry\t$index->{$entry}->{Node}\t$index->{$entry}->{Url}\t$CHECKSUMS{$entry}\n";
    7881}
    7982
    80 close(%CHK);
    8183
Note: See TracChangeset for help on using the changeset viewer.