Giter Site home page Giter Site logo

pod-licensizer-perl's Introduction

######################################################################
    Pod::Licensizer 0.03
######################################################################

NAME
    Pod::Licensizer - Keep your project's AUTHOR and LICENSE sections in
    sync

SYNOPSIS
        # Command line:
        $ licensizer

        # API:
        use Pod::Licensizer;

        my $licensizer = Pod::Licensizer->new();
        $licensizer->load_file( "MyModule.pm" );

        $licensizer->author_patch( 'Bodo Bravo <[email protected]>' );
        $licensizer->license_patch( 'Copyright 2011 blah blah blah' );

        $licensizer->write_file();

DESCRIPTION
    Pod::Licensizer helps keeping AUTHOR and LICENSE sections in sync across
    many source files in a project.

  licensizer
    Pod::Licensizer comes with a command line utility, "licensizer", which
    traverses a source tree, picks files containing POD documentation, and
    refreshes their AUTHOR and LICENSE sections.

    You define a ".licensizer.yml" file at the top level of your project
    containing the desired AUTHOR and LICENSE data like

        # .licensizer.yml
        author: |
          Bodo Bravo <[email protected]>
          Zach Zulu <[email protected]>

        license: |
          Copyright 2002-2011 by Bodo Bravo <[email protected]> and
          Zach Zulu <[email protected]>. All rights reserved.

    and then simply run the "licensizer" script.

    This is helpful if you want to add an author to your project or change
    the year in the copyright notice. All you have to do is edit the
    ".licensizer.yml" file and run "licensizer".

    Advanced format:

        # .licensizer.yml
    
        author: 
          text: |
            Mike Schilli <[email protected]>
          mode: verbatim
    
        license: 
          text: |
            Copyright 2011 by Mike Schilli, all rights reserved.
            This program is free software, you can redistribute it and/or
            modify it under the same terms as Perl itself.

    The "verbatim" mode setting makes sure that POD doesn't reformat the
    text. This is especially useful if you use tabular data (e.g. a vertical
    column of author names).

  API
    "new"
        Constructor.

    "$licensizer->load_file( $file )"
        Load and parse a file containing POD.

    "$licensizer-">author_patch( "author text", $opts )>
        Update the POD's AUTHOR section.

    "$licensizer-">license_patch( "license text", $opts )>
        Update the POD's LICENSE section.

    "$licensizer-">write_file( $filename )>
        Write back the file. If $filename is omitted, the original file is
        overwritten.

IS LICENSIZER A WORD?
    Strictly speaking, no. But what a boring world that would be if you
    couldn't make up your own words.

LICENSE
    Copyright 2011 by Mike Schilli, all rights reserved. This program is
    free software, you can redistribute it and/or modify it under the same
    terms as Perl itself.

AUTHOR
        2011, Mike Schilli <[email protected]>
    

pod-licensizer-perl's People

Contributors

mschilli avatar

Watchers

Slobodan Mišković avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.