[Bio] / KBaseTutorials / add_links_to_tutorials.pl Repository:
ViewVC logotype

Diff of /KBaseTutorials/add_links_to_tutorials.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1, Mon Mar 12 20:25:05 2012 UTC revision 1.2, Mon Mar 12 20:34:04 2012 UTC
# Line 2  Line 2 
2  use strict;  use strict;
3  use Data::Dumper;  use Data::Dumper;
4    
5    @ARGV == 1 or die "Usage: $0 spec-dir\n";
6    my $spec_dir = shift;
7    
8  my $cdmi_url = "http://www.mcs.anl.gov/~olson/cdmi.html#";  my $cdmi_url = "http://www.mcs.anl.gov/~olson/cdmi.html#";
9  my $cdmi_entity_url = "http://www.mcs.anl.gov/~olson/ksapling.html#";  my $cdmi_entity_url = "http://www.mcs.anl.gov/~olson/ksapling.html#";
# Line 11  Line 12 
12    
13  my %links;  my %links;
14    
15  my @cdmi = `grep funcdef CDMI-API.spec`;  my @cdmi = `grep funcdef $spec_dir/CDMI-API.spec`;
16  my @cdmi_entity = `grep funcdef CDMI-EntityAPI.spec`;  my @cdmi_entity = `grep funcdef $spec_dir/CDMI-EntityAPI.spec`;
17  my @idserver  = `grep funcdef IDServer-API.spec`;  my @idserver  = `grep funcdef $spec_dir/IDServer-API.spec`;
18    
19  foreach my $line (@cdmi) {  foreach my $line (@cdmi) {
20          $line =~ /funcdef\s+(\S+?)\(/;          $line =~ /funcdef\s+(\S+?)\(/;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3