All pastes #293660 Raw Edit

Plouj

public text v1 · immutable
#293660 ·published 2006-12-27 20:00 UTC
rendered paste body
$ 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 );