Changeset 161


Ignore:
Timestamp:
Jan 18, 2018, 8:20:33 AM (7 years ago)
Author:
g7moreau
Message:
  • Add command list-licence and open-database-license-v1.0 licence
Location:
trunk/project-meta
Files:
1 added
1 edited

Legend:

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

    r158 r161  
    2929   'make-licence'    => \&cmd_make_licence,
    3030   'make-copyright'  => \&cmd_make_copyright,
     31   'list-licence'    => \&cmd_list_licence,
    3132   );
    3233
     
    245246
    246247################################################################
     248
     249sub cmd_list_licence {
     250   opendir my $dh, '/usr/share/project-meta/licence.d/' or die $!;
     251   for my $licence (readdir $dh) {
     252      # next if not -t $licence;
     253      print "$licence\n";
     254      }
     255   closedir $dh;
     256   }
Note: See TracChangeset for help on using the changeset viewer.