[openrtm-commit:02171] r638 - trunk/rtmtools/packages/deb/debian
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 12月 14日 (水) 17:37:13 JST
Author: kawauchi
Date: 2016-12-14 17:37:12 +0900 (Wed, 14 Dec 2016)
New Revision: 638
Modified:
trunk/rtmtools/packages/deb/debian/rules
Log:
[compat,installer] Directory version number to install has been modified. refs #3212
Modified: trunk/rtmtools/packages/deb/debian/rules
===================================================================
--- trunk/rtmtools/packages/deb/debian/rules 2016-12-13 02:01:12 UTC (rev 637)
+++ trunk/rtmtools/packages/deb/debian/rules 2016-12-14 08:37:12 UTC (rev 638)
@@ -24,6 +24,9 @@
# Multiarch support
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+# short version number
+SHORT_VER := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | cut -b 1-3)
+
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -82,11 +85,11 @@
dh_installdirs -s
# for openrtp package
- (cd $(CURDIR) ; mkdir -p $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp)
- (cd $(CURDIR) ; cp -R [a-c]* $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp)
- (cd $(CURDIR) ; cp -R [e-z]* $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp)
- (cd $(CURDIR) ; cp -R dropins $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp)
- (cd $(CURDIR) ; rm -rf $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-1.1/openrtp/packages)
+ (cd $(CURDIR) ; mkdir -p $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-$(SHORT_VER)/openrtp)
+ (cd $(CURDIR) ; cp -R [a-c]* $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-$(SHORT_VER)/openrtp)
+ (cd $(CURDIR) ; cp -R [e-z]* $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-$(SHORT_VER)/openrtp)
+ (cd $(CURDIR) ; cp -R dropins $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-$(SHORT_VER)/openrtp)
+ (cd $(CURDIR) ; rm -rf $(CURDIR)/debian/openrtp/usr/lib/$(DEB_HOST_MULTIARCH)/openrtm-$(SHORT_VER)/openrtp/packages)
(cd $(CURDIR) ; cp openrtp $(CURDIR)/debian/openrtp/usr/bin/ ; chmod 755 $(CURDIR)/debian/openrtp/usr/bin/openrtp)
dh_install -s
More information about the openrtm-commit
mailing list