Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
libpsm2
libpsm2-use-exported-variable-for-version-and-r...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libpsm2-use-exported-variable-for-version-and-release.patch of Package libpsm2
commit c812d7da24984926e683e99aa5d3ef8a1d372774 Author: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com> Date: Mon Nov 20 17:59:13 2017 +0100 libpsm2: use exported variable for version and release Allow to override VERSION and RELEASE variable through the command line. Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com> diff --git Makefile Makefile index 8db7c1d..b460785 100644 --- Makefile +++ Makefile @@ -180,10 +180,10 @@ export LIBPSM2_COMPAT_CONF_DIR ifeq (true, $(shell git rev-parse --is-inside-work-tree 2>/dev/null)) ISGIT := 1 # Cache the result for later # Note, we don't define ISGIT if we are not in a git folder -VERSION := $(shell git describe --tags --abbrev=0 --match='psm-v*' | sed -e 's/^psm-v//' -e 's/-/_/') +VERSION ?= $(shell git describe --tags --abbrev=0 --match='psm-v*' | sed -e 's/^psm-v//' -e 's/-/_/') else ISGIT := 0 -VERSION := version +VERSION ?= version endif # If we have a file called 'rpm_release_extension' (as on github), @@ -213,7 +213,7 @@ endif # is the number of commits since the version tag was planted suffixed by the g<commitid> ifndef RELEASE RELTAG := "psm-v$(VERSION)" -RELEASE := $(shell if [ -f rpm_release_extension ]; then cat rpm_release_extension;\ +RELEASE ?= $(shell if [ -f rpm_release_extension ]; then cat rpm_release_extension;\ elif [ $(ISGIT) = 1 ] ; then git rev-list $(RELTAG)..HEAD -- . | wc -l; \ else echo "release" ; fi) endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor