Tuesday 11 June 2013

CMake library location

For some reason, you either know what kind of library you're going to build (STATIC or SHARED) or there is no way to know which prefix and suffix your library is going to get.

However, you can use the LOCATION property of the target and do some magic there.

See http://www.cmake.org/Bug/view.php?id=5195

Monday 3 June 2013

Fast authors for Mercurial

In case you need to find out who commited the first version of a file to a Mercurial repository, there is this little command that does so quickly.

hg log -r 'first(file("path/to/file"))' --template '{author}\n' -f
 
This is using hg log together with hg templating. You can customize your output with stuff like {date|isodate} or {desc). -f follows through renames and removals.



All the projects here are under a Creative Commons 3.0 licence! You can use and distribute them as you like (just quote the author so he knows his work is not useless)!

If you wish to get in touch with me write at projectsymphony@gmail.com