[SCM] 03/03: Update debian/rules: small cosmetic changes in get-orig-source section.

Boris Pek tehnick at moszumanska.debian.org
Tue Dec 17 17:49:14 UTC 2013


This is an automated email from the git hooks/post-receive script.

tehnick pushed a commit to branch master
in repository elmerfem.

commit 35200031bafd5024f506f18dc5f7a663c0e7d004
Author: Boris Pek <tehnick-8 at yandex.ru>
Date:   Tue Dec 17 21:48:23 2013 +0400

    Update debian/rules:
    small cosmetic changes in get-orig-source section.
---
 debian/rules | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 5490d01..d56284a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,9 +11,8 @@ export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS FFLAGS FCFLAGS
 Q_OPTS = "QMAKE_CXXFLAGS += $(CXXFLAGS)" "QMAKE_LFLAGS += $(LDFLAGS)"
 
 # get-orig-source target may be called from any directory by policy
-PKG_ROOT := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
-PKG_ROOT := $(realpath $(PKG_ROOT)/..)
-DEB_VER = $(shell cd $(PKG_ROOT) && dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-[0-9]*/\3/p')
+DEB_PATH:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
+DEB_VER:=$(shell dpkg-parsechangelog -l$(DEB_PATH)/changelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-[0-9]*/\3/p')
 
 package=elmer
 
@@ -236,5 +235,5 @@ binary: binary-arch binary-indep
 .PHONY: build binary-indep binary-arch binary
 
 get-orig-source:
-	$(PKG_ROOT)/debian/elmerfem_get-orig-source.sh $(DEB_VER)
+	$(DEB_PATH)/elmerfem_get-orig-source.sh $(DEB_VER)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/elmerfem.git



More information about the debian-science-commits mailing list