[eso-midas] 01/01: Automatically set proper MIDVERS from version number

Ole Streicher olebole-guest at moszumanska.debian.org
Tue Mar 3 15:17:04 UTC 2015


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

olebole-guest pushed a commit to branch debian
in repository eso-midas.

commit a50a1ac3514da363191074ecb5e0e1089b273e69
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Tue Mar 3 16:17:14 2015 +0100

    Automatically set proper MIDVERS from version number
---
 debian/rules | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index cd776f6..8bd7cc3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-VERSDIR=$(shell pwd)
-MIDVERS=13SEP
+DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
+MIDVERS := $(shell echo '$(VERSION)' | sed -e "s/\([[:digit:]]*\)\.\([[:digit:]]*\).*/\1-\2/;s/-01/JAN/;s/-02/FEB/;s/-03/MAR/;s/-04/APR/;s/-05/MAY/;s/-06/JUN/;s/-07/JUL/;s/-08/AUG/;s/-09/SEP/;s/-10/OCT/;s/-11/NOV/;s/-12/DEC/")
 export MIDVERS
 MIDASHOME=$(shell pwd)
 export MIDASHOME

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/eso-midas.git



More information about the debian-science-commits mailing list