[cod-tools] 04/142: trunk/ Finishing a working version of package building infrastructure.
Andrius Merkys
merkys-guest at moszumanska.debian.org
Mon Sep 25 13:44:10 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 02098da1d199221075013b1d838c8d21fbe967ba
Author: Andrius Merkys <andrius.merkys at gmail.com>
Date: Wed Oct 26 07:53:20 2016 +0000
trunk/
Finishing a working version of package building infrastructure.
git-svn-id: svn+ssh://saulius-grazulis.lt/home/andrius/svn-repositories/cod-deb-packaging/trunk@4 26752c47-bcd6-4c9c-b022-347364b77eb5
---
MasterMakefile | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/MasterMakefile b/MasterMakefile
index 1c90ef4..0b8a630 100644
--- a/MasterMakefile
+++ b/MasterMakefile
@@ -1,15 +1,22 @@
PROJECT = $(notdir $(shell pwd))
CHANGELOG = debian/changelog
-VERSION = $(shell head -n 1 ${CHANGELOG} | perl -lne 'print $$1 if /\((.*?)-\d\)/')
+PKG_VERSION = $(shell head -n 1 ${CHANGELOG} | perl -lne 'print $$1 if /\((.*?-\d+)\)/')
+VERSION = $(shell echo ${PKG_VERSION} | perl -lne 'print $$1 if /^(.*?)-\d+$$/')
PKGNAME = ${PROJECT}-${VERSION}
-all: ${PKGNAME}
+ORIG_TAR_GZ = ${PROJECT}_${VERSION}.orig.tar.gz
+DEBIAN_TAR_GZ = ${PROJECT}_${PKG_VERSION}.debian.tar.gz
+
+all: ${DEBIAN_TAR_GZ}
source: ${CHANGELOG}
./fetch-source
-${PKGNAME}: source
- mv source $@
+${DEBIAN_TAR_GZ}: source
+ mv source ${PKGNAME}
+ tar -c ${PKGNAME} | gzip > ${ORIG_TAR_GZ}
rsync -av --exclude .svn debian ${PKGNAME}
+ (cd ${PKGNAME}; debuild -S)
+ rm -rf ${PKGNAME}
--
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