mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-24 08:34:18 +02:00
moved version definition
This commit moves the version definition to espeakup.c instead of cli.c
This commit is contained in:
parent
a8876a7964
commit
c12ec3e1b0
3 changed files with 5 additions and 2 deletions
2
Makefile
2
Makefile
|
|
@ -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
2
cli.c
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue