pkg-config chaining

Quick note: chaining pkg-config .pc files using the Requires: statement works. As in, flags from the required packages are indeed added to the flags for the requiring package, including -L flags (which I was wondering about in particular, w.r.t. PR Itseez/opencv#3792). This might seem obvious as that’s quite the purpose of this statement, but I […]

Sweatless –help text

I just stumbled upon a nice way to generate the --help text from the comments at the top of the file. Here’s how it’s done in hub‘s build script: #!/usr/bin/env bash # Usage: script/build [-o output] [test] # # Sets up GOPATH and compiles hub. With `test`, runs tests instead. #[blah] case "$1" in #[blah] […]