Coder Social home page Coder Social logo

pombredanne / licins Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dogoncouch/licins

0.0 0.0 0.0 159 KB

Insert commented software licenses into source files. Includes persistent config, and modules for popular open source licenses.

License: MIT License

Python 99.41% Makefile 0.59%

licins's Introduction

licins

licins is a tool for inserting commented software licenses into source code. It comes with modules for popular open source licenses. Use ~/.config/licins.conf for persistent options. Licenses are inserted at the beginning of files, but after any lines starting with #!.

INSTALLING

See the latest instructions on the releases page.

OPTIONS

--version     show program's version number and exit
-h, --help    show this help message and exit
--list        return a list of available licenses
-l LICENSE    set which license to use
-t LICTYPE    set license type (header|full, default=header)
-c COMMENT    set the comment string
-C COMMENTEND set the comment end string
-d PROGDESC   set a program description line
-n CNAME      set the copyright name
-y CYEAR      set the copyright year (default: current year)
-p PREFIX     set the first line (e.g. #!/bin/bash)
-e ENCODING   add an encoding line
-s SIGNATURE  add a signature line to follow the (c) name

Always put multi-word option arguments in single quotes!

==== Available license modules: ====

apache    : The Apache 2.0 license
bsd2      : The Berkeley Software Distribution license v2
bsd3      : The Berkeley Software Distribution license v3
gfdl1-2   : The GNU Free Documentation License v1.2
gfdl1-3   : The GNU Free Documentation License v1.3
gpl2      : The GNU General Public License v2+
gpl3      : The Gnu General Public License v3
lgpl2     : The GNU Library General Public License v2+
lgpl2-1   : The GNU Library General Public License v2.1+
lgpl3     : The GNU Library General Public License v3
mit       : The MIT License

EXAMPLES

licins -l mit -n 'Dan Persons' -p '#!/usr/bin/env python' *.py
licins -l gpl2 -n 'John Exampleton' -c '/*' -C '*/' example.c
licins -l gpl3 -t full -c '' LICENSE
licins iwrotethisawhileago.pl
licins *.py

AUTHOR

Dan Persons ([email protected])

COPYRIGHT

MIT License

Copyright (c) 2017 Dan Persons ([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

licins's People

Contributors

dogoncouch 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.