mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
Add debian distro to package release version
This commit is contained in:
parent
8834b66858
commit
51f204cf4c
@ -1,10 +1,13 @@
|
|||||||
|
# Get some info about the distro
|
||||||
|
-include /etc/lsb-release
|
||||||
|
|
||||||
DEB_DIST := unstable
|
DEB_DIST := $(DISTRIB_CODENAME)
|
||||||
# Instead of RELEASE-15.01-RC1 debian wants 15.01~RC1
|
# Instead of RELEASE-15.01-RC1 debian wants 15.01~RC1
|
||||||
UPSTREAM_VER := $(subst -,~,$(subst RELEASE-,,$(PACKAGE_LBL)))
|
UPSTREAM_VER := $(subst -,~,$(subst RELEASE-,,$(PACKAGE_LBL)))
|
||||||
|
ifeq ($(DEB_DIST), unstable) # This should be set manually for a submission to Debian or similar
|
||||||
DEB_REV := 1
|
DEB_REV := 1
|
||||||
ifeq ($(DEB_DIST), trusty)
|
else
|
||||||
DEB_REV := $(DEB_REV)$(DEB_DIST)1
|
DEB_REV := 0$(DEB_DIST)1
|
||||||
endif
|
endif
|
||||||
DEB_NAME := $(ORG_SMALL_NAME)
|
DEB_NAME := $(ORG_SMALL_NAME)
|
||||||
DEB_ORIG_SRC := $(PACKAGE_DIR)/$(DEB_NAME)_$(UPSTREAM_VER).orig.tar.gz
|
DEB_ORIG_SRC := $(PACKAGE_DIR)/$(DEB_NAME)_$(UPSTREAM_VER).orig.tar.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user