Plouj
public text v1 · immutable$ git clone git://source.winehq.org/git/wine.git wine
$ cd wine
$ grep -B 1 -A 3 PACKAGE_VERSION loader/Makefile.in
version-stamp: dummy
(GIT_DIR=$(TOPSRCDIR)/.git git-describe 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -e 's/\(.*\)/const char wine_version[] = "\1";/' >$@ || ($(RM) $@ && exit 1)
version.c: version-stamp
@cmp -s version-stamp $@ || cp version-stamp $@
$ grep wine_version loader/main.c
extern const char wine_version[];
printf( "%s\n", wine_version );