Insert commented licenses into source files
Project description
Licins is a tool for inserting commented software licenses into source code. It comes with modules for popular open source licenses, and can use config files for persistent options. Licenses are inserted at the beginnigs of files, but after any lines starting with #!. Options for copyright name, encoding, signature, and other add-ons.
Options
usage: licins [-h] [--version] [--list] [-l LICENSE] [-t LICTYPE] [-c COMMENT] [-C COMMENTEND] [-d PROGDESC] [-n CNAME] [-y CYEAR] [-p PREFIX] [-e ENCODING] [-s SIGNATURE] [FILE [FILE ...]] positional arguments: FILE specify files in which to insert licenses optional arguments: -h, --help show this help message and exit --version show program's version number and exit --list return a list of available licenses -l LICENSE set which license to use -t LICTYPE set license type -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! Use ~/.config/licins.conf for persistent options.
==== 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
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
licins-1.1.tar.gz
(112.9 kB
view details)
File details
Details for the file licins-1.1.tar.gz
.
File metadata
- Download URL: licins-1.1.tar.gz
- Upload date:
- Size: 112.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a444aa301bc1f87077b5a6b24cecbaa44e5c628942c1b8b452544476e7fe87ae |
|
MD5 | b4b3189e064aed2a2deed168b8e43a32 |
|
BLAKE2b-256 | 41cd1fe45d97d882619511cc6499326c02811ed88466433045550fd47863f9c8 |