moved version definition

This commit moves the version definition to espeakup.c instead of cli.c
This commit is contained in:
William Hubbs 2009-02-09 08:46:14 -06:00
commit c12ec3e1b0
3 changed files with 5 additions and 2 deletions

View file

@ -17,7 +17,7 @@ ifeq ("$(origin TAG)", "command line")
TIMESTAMP := _p$(shell date +%Y%m%d)
endif
VERSION := $(shell grep 'Version.*=' cli.c | sed 's/.*"\(.*\)";/\1/')
VERSION := $(shell grep 'Version.*=' espeakup.c | sed 's/.*"\(.*\)";/\1/')
TAG := v$(VERSION)
TARPREFIX := espeakup-$(VERSION)
TARFILE := $(TARPREFIX)$(TIMESTAMP).tar

2
cli.c
View file

@ -24,7 +24,7 @@
#include "espeakup.h"
/* program version */
const char *Version = "0.4";
extern const char *Version;
/* command line options */
const char *shortOptions = "dhv";

View file

@ -26,6 +26,9 @@
#include "espeakup.h"
/* program version */
const char *Version = "0.4";
/* path to our pid file */
const char *pidPath = "/var/run/espeakup.pid";