Build system improvements
[llpp.git] / mkhelp.sh
blobee4b4f0c66fa69e4be5cdad0e771c9bf53ae00e3
1 #!/bin/sh
2 set -e
3 cat $2 | ocaml str.cma $1
4 v=$(cd $(dirname $1) && git describe --tags --dirty 2>/dev/null \
5 || echo "unknown")
6 printf 'let version ="%s";;\n' $v