mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-26 15:54:15 +01:00
OP-1695 Ubuntu PPA: added check for debian distro
This commit is contained in:
parent
0899403877
commit
afe0949f00
@ -6,6 +6,9 @@ ifndef OPENPILOT_IS_COOL
|
|||||||
$(error Top level Makefile must be used to build this target)
|
$(error Top level Makefile must be used to build this target)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Are we using a debian based distro?
|
||||||
|
ifneq ($(shell which dpkg),)
|
||||||
|
|
||||||
DEB_DIST := unstable
|
DEB_DIST := unstable
|
||||||
# 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)))
|
||||||
@ -64,6 +67,7 @@ $(DEB_PACKAGE_DIR): $(DEB_ORIG_SRC) debian | $(PACKAGE_DIR)
|
|||||||
$(V1) mv debian $(PACKAGE_DIR)/$(PACKAGE_NAME)
|
$(V1) mv debian $(PACKAGE_DIR)/$(PACKAGE_NAME)
|
||||||
$(V1) rm -rf $(DEB_PACKAGE_DIR) && mv $(PACKAGE_DIR)/$(PACKAGE_NAME) $(DEB_PACKAGE_DIR)
|
$(V1) rm -rf $(DEB_PACKAGE_DIR) && mv $(PACKAGE_DIR)/$(PACKAGE_NAME) $(DEB_PACKAGE_DIR)
|
||||||
|
|
||||||
|
endif # Debian based distro?
|
||||||
##############################
|
##############################
|
||||||
#
|
#
|
||||||
# Install OpenPilot
|
# Install OpenPilot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user