[cod-tools] 78/142: trunk/ Adding 'make lintian' target to run lintian on all generated files.

Andrius Merkys merkys-guest at moszumanska.debian.org
Mon Sep 25 13:44:20 UTC 2017


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

merkys-guest pushed a commit to branch master
in repository cod-tools.

commit 6aa7db66ba36085dc8a971a4865377058ef98282
Author: Andrius Merkys <andrius.merkys at gmail.com>
Date:   Mon Dec 12 09:29:46 2016 +0000

    trunk/
    Adding 'make lintian' target to run lintian on all generated files.
    
    
    git-svn-id: svn+ssh://saulius-grazulis.lt/home/andrius/svn-repositories/cod-deb-packaging/trunk@78 26752c47-bcd6-4c9c-b022-347364b77eb5
---
 MasterMakefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/MasterMakefile b/MasterMakefile
index 1d58546..725502e 100644
--- a/MasterMakefile
+++ b/MasterMakefile
@@ -1,5 +1,6 @@
 PROJECT   = $(notdir $(shell pwd))
 CHANGELOG = debian/changelog
+ARCH      = $(shell dpkg-deb --version | head -n 1 | perl -lne 'print $$1 if /\((.+?)\)/')
 
 PKG_VERSION = $(shell head -n 1 ${CHANGELOG} | perl -lne 'print $$1 if /\((.*?-\d+)\)/')
 VERSION = $(shell echo ${PKG_VERSION} | perl -lne 'print $$1 if /^(.*?)-\d+$$/')
@@ -10,6 +11,10 @@ ORIG_TAR_GZ   = ${PROJECT}_${VERSION}.orig.tar.gz
 DEBIAN_TAR_GZ = ${PROJECT}_${PKG_VERSION}.debian.tar.gz
 DEBIAN_TAR_XZ = ${PROJECT}_${PKG_VERSION}.debian.tar.xz
 
+DSC_FILE     = ${PROJECT}_${PKG_VERSION}.dsc
+CHANGES_FILE = ${PROJECT}_${PKG_VERSION}_${ARCH}.changes
+DEB_FILE     = ${PROJECT}_${PKG_VERSION}_${ARCH}.deb
+
 DEBUILD_OPTS = -us -uc
 
 all: ${DEBIAN_TAR_GZ}
@@ -24,7 +29,7 @@ endif
 
 #------------------------------------------------------------------------------
 
-.PHONY: original orig signed
+.PHONY: original orig signed cleanAll distclean lint lintian
 
 original orig: ${ORIG_TAR_GZ}
 
@@ -44,6 +49,11 @@ ${DEBIAN_TAR_GZ}: ${ORIG_TAR_GZ}
 signed:
 	${MAKE} all DEBUILD_OPTS=
 
+lint lintian:
+	lintian --pedantic ${DSC_FILE}
+	lintian --pedantic ${CHANGES_FILE}
+	lintian --pedantic ${DEB_FILE}
+
 cleanAll distclean:
 	rm -rf source ${PKGNAME} ${PROJECT}
 	rm -f ${ORIG_TAR_GZ} ${DEBIAN_TAR_GZ} ${DEBIAN_TAR_XZ}

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



More information about the debian-science-commits mailing list