Difference for lib/collect.pl.in from version 1.16 to 1.17


version 1.16 version 1.17
Line 67
 
Line 67
   
 &info("writing ...$archetypes");  &info("writing ...$archetypes");
 open(ARCH,">".$archetypes) || &die("cannot open ".$archetypes);  open(ARCH,">".$archetypes) || &die("cannot open ".$archetypes);
 &archsOut;  &archsOut($root);
 close(ARCH);  close(ARCH);
   
   
Line 219
 
Line 219
   
   
 sub archsOut {  sub archsOut {
       local($dir) = shift;
   
     foreach $arch (@archs) {      foreach $arch (@archs) {
    # Assume the filename $arch begins with $dir. Assign the first path
    # name component after $dir to $pathto.
    if($arch =~ /^\Q$dir\E\/([^\/]+)\/.*[.]arc$/) {
        $pathto = $1;
    } else {
        &warn("cannot determine editor_folder from arch '$arch'");
        $pathto = "";
    }
  open(ARC,$arch) || &die("cannot open ".$arch);   open(ARC,$arch) || &die("cannot open ".$arch);
  $pathto = $arch;  
  $pathto =~ s@[^/]*/@@;  
  $pathto =~ s@[a-z]*/(.*)/.*arc@$1@;  
 line: while(<ARC>) {  line: while(<ARC>) {
      chop;       chop;
      ($var,@values) = split;       ($var,@values) = split;
Line 265
 
Line 272
  next line;   next line;
      }       }
      if ($var eq "end") {       if ($var eq "end") {
  print ARCH "editor_folder $pathto\n";   print ARCH "editor_folder $pathto\n" if $pathto ne "";
      }       }
      if ($var eq "visibility") {       if ($var eq "visibility") {
  $lvis = $values[0];   $lvis = $values[0];


Legend:
line(s) removed in v.1.16 
line(s) changed
 line(s) added in v.1.17

File made using version 1.98 of cvs2html by leaf at 2011-07-21 18:44