Changeset 8df704f


Ignore:
Timestamp:
Nov 7, 2009, 9:14:36 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
01846ce
Parents:
6c81223
git-author:
Nelson Elhage <nelhage@mit.edu> (11/07/09 18:29:39)
git-committer:
Nelson Elhage <nelhage@mit.edu> (11/07/09 21:14:36)
Message:
Take the version number from git if we're building in a git tree.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r76f0e19 r8df704f  
    11ACLOCAL_AMFLAGS = -I m4
     2
     3GIT_FLAGS=$(if $(wildcard .git),-DGIT_VERSION=$(subst barnowl-,,$(shell git describe --match='barnowl-*' HEAD)))
    24
    35bin_PROGRAMS = barnowl.bin
     
    2830
    2931CPPFLAGS = -I$(top_srcdir)/ \
    30            -I$(top_srcdir)/libfaim/
     32           -I$(top_srcdir)/libfaim/ \
     33           $(GIT_FLAGS)
    3134
    3235BASE_SRCS=list.c message.c mainwin.c popwin.c zephyr.c messagelist.c \
  • owl.h

    ra01ed7c r8df704f  
    4848#endif
    4949
     50#ifdef  GIT_VERSION
     51#define stringify(x)       __stringify(x)
     52#define __stringify(x)     #x
     53#define OWL_VERSION_STRING stringify(GIT_VERSION)
     54#else
    5055#define OWL_VERSION_STRING PACKAGE_VERSION
     56#endif
    5157
    5258/* Feature that is being tested to redirect stderr through a pipe.
Note: See TracChangeset for help on using the changeset viewer.