Skip to content

Commit

Permalink
Fetch the version from the git tags rather than the version file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Feb 10, 2021
1 parent 0693e3b commit 9668be9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TESTDATA=.testdata
LIBNSSCACHE = nss_cache.o compat/getpwent_r.o compat/getgrent_r.o

SOURCES = Makefile gen_getent.c lookup.c nss_cache.c nss_cache.h nss_test.h COPYING version libnss-cache.spec
VERSION = $(shell cat version)
VERSION = $(shell git describe --tags --always | sed -E 's@.*/([^-]*).*@\1@')

This comment has been minimized.

Copy link
@kev009

kev009 Feb 10, 2021

Contributor

Will this break packaging systems that use the tagged .tar.gz @jaqx0r?

This comment has been minimized.

Copy link
@jaqx0r

jaqx0r via email Feb 10, 2021

Author Contributor

This comment has been minimized.

Copy link
@kev009

kev009 Feb 10, 2021

Contributor

@jaqx0r it works as expected since it is only used by dist as you say. FreeBSD port updated! Thanks Jamie

This comment has been minimized.

Copy link
@jaqx0r

jaqx0r via email Feb 10, 2021

Author Contributor

This comment has been minimized.

Copy link
@kev009

all: $(LIBRARY)

Expand Down
1 change: 0 additions & 1 deletion version

This file was deleted.

0 comments on commit 9668be9

Please sign in to comment.