sex

simple editor extended using libtermbox
git clone git://z3bra.org/sex
Log | Files | Refs | README

commit b5eeba8daea9d3976388f46981fcb5aa20d3db28
parent f54abc45c906ff52ba4ae053b9f7d3d08cd48e5b
Author: z3bra <willyatmailoodotorg>
Date:   Thu Nov 19 14:27:49 2015

Add a version number

Diffstat:
 config.mk | 6 ++++--
 sex.c     | 2 ++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/config.mk b/config.mk @@ -1,3 +1,5 @@ -CFLAGS += -g -LDFLAGS += -ltermbox +VERSION = 0.1 +CPPFLAGS += +CFLAGS += -g $(CPPFLAGS) -DVERSION=\"$(VERSION)\" +LDFLAGS += -ltermbox diff --git a/sex.c b/sex.c @@ -91,6 +91,8 @@ main(int argc, char **argv) ARGBEGIN { case 'V': /* print version */ + printf("%s - %s\n", argv0, VERSION); + return 0; break; } ARGEND