Changeset 8048 in genesis for nodes


Ignore:
Timestamp:
May 26, 2010, 5:23:36 PM (15 years ago)
Author:
rick
Message:

upport is always nice, but can be a bit tricky sometimes. Hence the little hack around it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nodes/genesis-to-py.pl

    r6564 r8048  
    99# Which gonna be used for more logic stuff ;-)
    1010
    11 # Avoid junk node imports, use following line to import valid nodes
    12 # Usage: for file in CNode*/wleiden.conf proxy*/wleiden.conf; do ./genesis-to-py.pl $file; done > py.conf
     11$argc = $#ARGV + 1;
     12if ($argc == 0) {
     13  print "Usage $_ <wleiden.conf> ...\n";
     14  exit 1;
     15# Hack to easy support multiple files without remembering any variable in between
     16} elsif ($argc > 1) {
     17  foreach $file (@ARGV) {
     18     print `perl $ENV{_} $file`;
     19  }
     20  exit 0;
     21}
     22
     23
    1324do($ARGV[0]) || die;
    1425
Note: See TracChangeset for help on using the changeset viewer.