Morphological Licence Inserter

Home | Site Map | Site Index

Morphologica Licence Inserter

During the release packing for Morphfolia (which is now on CodePlex: http://morphfolia.codeplex.com) I came to the conclusion that I wasn't exactly sure how to 'use' the Ms-RL licence - in the sense that I wasn't sure where or how to include the licence physically in the project.

I Googled it on Bing, and so on, but nowhere could I find any guidance; I even asked on StackOverflow.

In the end I took the GNU GPL type approach:

  • A copy of the full licence text with each project (licence.txt).
  • A 'reference' to the licence file (as well as a small blurb) at the top of each code file.

Of course, throwing a bit of text in the top of each code file might be a simple concept but its not a trivial thing to do if you have multiple projects and files.  So in the end I whipped up a small tool to do it for me.

Get it here: Morphological.LicenceInserter v1.0.zip (99Kb, full source code, released under Ms-RL).

How to use it:

  1. Copy your code to a staging area (I use RoboCopy).
  2. Crank up the Licence Inserter Tool and have it 'embed' a bit of text (which you write once) into the top of every file you want the reference to appear in.
  3. Check or test the end result of the licence embedding process, and you're good to go.

 The program automatically 'wraps' your text in the correct commenting syntax for the file type.

Last Modified 17/11/2009 9:33:16 p.m. by AdrianK (adriank [at] morphological [dot] geek [dot] nz)