diff --git a/Makefile b/Makefile index de4004b..60b6d30 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ SYSCONFDIR ?= /etc all: gpio-wait sed -i -r -e "s@(^SYSCONFDIR = ').*('$$)@\1$(SYSCONFDIR)\2@" doorlockd sed -i -r -e "s@(^PREFIX = ').*('$$)@\1$(PREFIX)\2@" doorlockd + sed -i -r -e "s@(^__version__ = ').*('$$)@\1$(shell cat VERSION)\2@" doorlockd gpio-wait: gpio-wait.c diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..192cc85 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +v2.0rc2 diff --git a/doorlockd b/doorlockd index 5660a6a..cba4442 100755 --- a/doorlockd +++ b/doorlockd @@ -36,7 +36,7 @@ __license__ = 'GPLv2' __email__ = 'ralf@binary-kitchen.de' __status__ = 'Development' __maintainer__ = 'Ralf Ramsauer' -__version__ = '2.0-rc2' +__version__ = '0.0' log_level = logging.DEBUG date_fmt = '%Y-%m-%d %H:%M:%S'