GithubHelp home page GithubHelp logo

merobi-hub / add-copyright Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14 KB

A script for adding a copyright to all files in a project having a specified file type

License: Other

Python 100.00%
utility

add-copyright's Introduction

Add Copyright

A script for adding a copyright line to all files in a project having a specified file type. This utility for open-source project authors supports eight different file types. To ease the review process, the script is designed to change only one type of file at a time.

Supported file types:

  • .java
  • .py
  • .md
  • .html
  • .txt
  • .rs
  • .sh
  • .ts

To use:

  1. Copy the add-copyright.py script and paste it in the root directory of your project.

  2. Run the script from the command line with Python 3, using the timeframe as the first argument, the project author's name as the second argument and the desired file type as the third argument.

python3 add-copyright.py 2018 Marquez sh

The above command will add a copyright attributing authorship to Marquez to all Bash files in the project:

# Copyright 2018 contributors to the Marquez project

Date ranges rather than individual dates are also supported.

python3 add-copyright.py 2018-2022 Marquez sh

will result in:

# Copyright 2018-2022 contributors to the Marquez project

License

Creative Commons BY-SA 4.0

add-copyright's People

Contributors

merobi-hub avatar

Watchers

 avatar

add-copyright's Issues

automate removal of script

Needed: way to automatically check for and delete the add-copyright script from the dir in which the script was previously run

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.