mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
Added a version script
I added a version script. This is used in the Makefile to get the version of espeakup when none is specified when a tarball is created.
This commit is contained in:
parent
bbf77d918d
commit
8dca597f29
2 changed files with 6 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -21,7 +21,7 @@ ifeq ("$(origin TAG)", "command line")
|
|||
TIMESTAMP := _p$(shell date +%Y%m%d)
|
||||
endif
|
||||
|
||||
VERSION := $(shell grep 'Version.*=' espeakup.c | sed 's/.*"\(.*\)";/\1/')
|
||||
VERSION := $(shell ./version)
|
||||
TAG := v$(VERSION)
|
||||
TARPREFIX := espeakup-$(VERSION)
|
||||
TARFILE := $(TARPREFIX)$(TIMESTAMP).tar
|
||||
|
|
|
|||
5
version
Executable file
5
version
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
ver=$(grep "const char.*Version" espeakup.c)
|
||||
ver=${ver%\"*}
|
||||
ver=${ver#*\"}
|
||||
echo ${ver}
|
||||
Loading…
Add table
Add a link
Reference in a new issue