Changeset 156


Ignore:
Timestamp:
Jan 17, 2018, 10:18:31 PM (3 years ago)
Author:
g7moreau
Message:
  • Update AUTHORS.txt file
Location:
trunk/project-meta
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/project-meta/project-meta

    r155 r156  
    145145
    146146   if (-f "$current_dir/AUTHORS.txt") {
    147       print "Warning: AUTHORS.txt already exists\n";
    148       return;
     147      # Test for manual or automatically generated file
     148      # Automatically generated file by project-meta
     149      my $automatic;
     150      open my $fh,  '<', "$current_dir/AUTHORS.txt" or die $!;
     151      for my $line <$fh> {
     152         $line =~ m/Automatically generated .* project-meta/i and $automatic++;
     153         }
     154      close $fh;
     155
     156      if (not $automatic) {
     157         print "Warning: AUTHORS.txt already exists\n";
     158         return;
     159         }
     160
     161      print "Warning: update AUTHORS.txt\n";
    149162      }
    150163
  • trunk/project-meta/template.d/AUTHORS.tt

    r154 r156  
    66[% END %]
    77
    8 
    9 File generated automatically by project-meta.
    10    
     8----
     9Automatically generated file by project-meta.
Note: See TracChangeset for help on using the changeset viewer.