Changeset 4086 in genesis


Ignore:
Timestamp:
Mar 16, 2005, 11:36:47 PM (20 years ago)
Author:
rick
Message:

Fixed wrong parsing while loading nodelist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/g_list.pl

    r4083 r4086  
    2222
    2323#path variablen
    24 my $home="/home/rick/svn/genesis";
     24my $home="/home/wleiden/genesis";
    2525my $ndir="$home/nodes";
    2626my $toolfile="$home/tools/wleiden.pl";
     
    3030
    3131######################## END OF CONFIG ##########################
    32 my $html=1;
     32my $HTML=1;
    3333
    3434#laden van tool file
     
    122122sub g_list {
    123123  if ($HTML) {
    124     $svn_version=svn_version("$ndir");
     124    my $svn_version=svn_version("$ndir");
    125125    if ($svn_version=~/Last Changed Rev: (\d+)/) {
    126126      $revision=$1;
     
    142142      next;
    143143    };
    144     $hostname=$dir;
     144    my $node = $dir;
    145145    if (! $HTML) {
    146       print "$hostname\n";
     146      print "$node\n";
    147147    }
    148148    else {
    149       printline("<TR><TD><A HREF=g_list.pl/$hostname/config>$hostname</A></TD>");
     149      printline("<TR><TD><A HREF=g_list.pl/$node/config>$node</A></TD>");
    150150      foreach $file (sort @filelist) {
    151         printline("<TD><A HREF=g_list.pl/$hostname/$file>$file</A></TD>\n");
     151        printline("<TD><A HREF=g_list.pl/$node/$file>$file</A></TD>\n");
    152152      };
    153     };
    154   };
    155   printline("</TABLE><P>");
     153      printline("</TABLE><P>");
     154    };
     155  };
    156156};
    157157
Note: See TracChangeset for help on using the changeset viewer.