mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +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
|
||||
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
|
||||
ifeq ($(DEB_DIST), trusty)
|
||||
DEB_REV := $(DEB_REV)$(DEB_DIST)1
|
||||
else
|
||||
DEB_REV := 0$(DEB_DIST)1
|
||||
endif
|
||||
DEB_NAME := $(ORG_SMALL_NAME)
|
||||
DEB_ORIG_SRC := $(PACKAGE_DIR)/$(DEB_NAME)_$(UPSTREAM_VER).orig.tar.gz
|
||||
|
Loading…
x
Reference in New Issue
Block a user