"lib/licDump.ml" did not exist on "e9232136c982b66346d68bdf2e5d2bf602e5520c"
Newer
Older

erwan
committed
# if it is not a git version, it has to be an opam version!
SHA:=$(shell git log -1 --pretty=format:"%h" || echo "opam")
BRANCH:=$(shell git branch | grep "*" | cut -d ' ' -f 2 || basename `pwd` | echo "opam")
VERSION=$(shell git describe --tags || basename `pwd` | cut -d '.' -f2-4)

erwan
committed
del_version:

erwan
committed
gen_version: del_version src/lutilsVersion.ml
lib/lutilsVersion.ml:
echo "let str=\"$(VERSION)\"" > lib/lutilsVersion.ml ; \
echo "let sha=\"$(SHA)\"" >> lib/lutilsVersion.ml