Skip to content

Commit

Permalink
Set the version to 0.67.
Browse files Browse the repository at this point in the history
For now, version numbers are the fraction of GNU find features
supported.
  • Loading branch information
tavianator committed Feb 14, 2016
1 parent 9cba877 commit 6bb99d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@
# the COPYING file or http://www.wtfpl.net/ for more details. #
#####################################################################

ifeq ($(wildcard .git),)
VERSION := 0.67
else
VERSION := $(shell git describe --always)
endif

CC ?= gcc
CFLAGS ?= -g -Wall
LDFLAGS ?=
DEPFLAGS ?= -MD -MP -MF $(@:.o=.d)
RM ?= rm -f

LOCAL_CPPFLAGS := -D_DEFAULT_SOURCE -D_GNU_SOURCE
LOCAL_CPPFLAGS := -D_DEFAULT_SOURCE -D_GNU_SOURCE -DBFS_VERSION=\"$(VERSION)\"
LOCAL_CFLAGS := -std=c99

ALL_CPPFLAGS = $(LOCAL_CPPFLAGS) $(CPPFLAGS)
Expand Down
9 changes: 7 additions & 2 deletions bfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
#include <sys/types.h>
#include <time.h>

#define BFS_VERSION "0.0"
#define BFS_HOMEPAGE "https://github.com/tavianator/bfs"
#ifndef BFS_VERSION
# define BFS_VERSION "0.67"
#endif

#ifndef BFS_HOMEPAGE
# define BFS_HOMEPAGE "https://github.com/tavianator/bfs"
#endif

/**
* A command line expression.
Expand Down

0 comments on commit 6bb99d8

Please sign in to comment.