addlicense, a tool to automate license headers

For the past few months I have been toying around Standard ML and after some work I pushed my testing library’s, Railroad, first release.

Considering that I wanted to make it single file and that I also have some tests there. It would be nice to have an automated way to add and update license headers on the source files.

After a brief search, I discovered addlicense. This is a tool that does exactly what I wanted: add and update license headers. That’s it.

This is how I used it on my project:

addlicense \
  -c "Perplex Systems" \
  -l apache \
  $(find . -type f -iregex ".*\.\(sml\|smi\|sig\|mlb\)$")

Easy, isn’t it? Just say who you are, feed it the files you want to modify and that’s it!

Unsupported file extensions

If, like me, you are using it with a not so common file extension. The tool will fail silently, in this case, I recommend you take a look and see if your file extension is supported on its source code.

I forked it to introduce the Standard ML file extensions and I also plan on having it update the license headers.


Articles from blogs I follow around the net

The four tenets of SOA revisited

Twenty years after. In the January 2004 issue of MSDN Magazine you can find an article by Don Box titled A Guide to Developing and Running Connected Systems with Indigo. Buried within the (now dated) discussion of the technology…

via ploeh blog March 4, 2024

Building a demo of the Bleichenbacher RSA attack in Rust

Recently while reading Real-World Cryptography, I got nerd sniped1 by the mention of Bleichenbacher's attack on RSA. This is cool, how does it work? I had to understand, and to understand something, I usually have to build it. Well, friends, that is what…

via ntietz.com blog March 4, 2024

How to unbreak Dolphin on SteamOS after the QT6 update

A recent update to Dolphin made it switch to QT6. This makes it crash with this error or something like it: dolphin-emu: symbol lookup error: dolphin-emu: undefined symbol: _Zls6QDebugRK11QDockWidget, version Qt_6 This is fix…

via Xe Iaso's blog March 3, 2024

Generated by openring