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

rashad-guest pushed a commit to branch master
in repository otb.

commit 99e6f168666b1dc1a04c16c5d331ab10f2d2466f
Author: Rashad Kanavath <rashad.kanav...@c-s.fr>
Date:   Wed Dec 16 11:42:31 2015 +0100

    configure control from template
---
 debian/rules | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 839b27a..dcaee28 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,12 +21,15 @@ ifndef PKGVERSION
     PKGVERSION=1
 endif
 
+TEMPLATES=$(wildcard debian/*.in)
+
 OTB_VERSION_MAJOR  = $(shell sed -ne 's/set(OTB_VERSION_MAJOR 
"\([0-9]*\)")/\1/p' CMakeLists.txt)
 OTB_VERSION_MINOR  = $(shell sed -ne 's/set(OTB_VERSION_MINOR 
"\([0-9]*\)")/\1/p' CMakeLists.txt)
 OTB_VERSION_PATCH  = $(shell sed -ne 's/set(OTB_VERSION_PATCH 
"\([0-9]*\)")/\1/p' CMakeLists.txt)
-OTB_VERSION_SONAME = "$(OTB_VERSION_MAJOR).$(OTB_VERSION_MINOR)"
+OTB_VERSION_SONAME = "$(OTB_VERSION_MAJOR).$(OTB_VERSION_MINOR)-1"
 OTB_VERSION_FULL   = 
"$(OTB_VERSION_MAJOR).$(OTB_VERSION_MINOR).$(OTB_VERSION_PATCH)"
 
+
 CMAKE_FLAGS = \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_BUILD_TYPE:STRING=Release \
@@ -52,8 +55,11 @@ pkgcli:=$(DEBPKGNAME)-bin
 pkggui:=$(DEBPKGNAME)-bin-qt
 pkglib:=lib$(DEBPKGNAME)
 pkgdev:=$(pkglib)-dev
-mancli:=$(CURDIR)/debian/$(pkgcli)/usr/share/man/man1/
-mangui:=$(CURDIR)/debian/$(pkggui)/usr/share/man/man1/
+
+templates:
+       for TEMPLATE in $(TEMPLATES) ; do \
+           sed -e 's/@SOVERSION@/$(OTB_VERSION_SONAME)/g' $$TEMPLATE > `echo 
$$TEMPLATE | sed 's/.in$$//'` ; \
+       done
 
 # OTB_LIB_DIRS = $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
 # rather use all libs since the installed libs are spread over several packages
@@ -73,7 +79,8 @@ override_dh_install:
        rm -f 
$(CURDIR)/debian/$(pkglib)/usr/lib/$(DEB_HOST_MULTIARCH)/libOTBWrapper*
        rm -f 
$(CURDIR)/debian/$(pkgdev)/usr/lib/$(DEB_HOST_MULTIARCH)/libOTBWrapper*
        rm -f $(CURDIR)/debian/$(pkgdev)/usr/lib/otb/python/*.pyc
-       #cp -a debian/manpages/otbcli* $(CURDIR)/debian/
 
 override_dh_installchangelogs:
        dh_installchangelogs RELEASE_NOTES.txt
+
+.PHONY: templates

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/otb.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to