Centralized VERSION

Rafael Laboissiere rafael at debian.org
Fri Nov 18 19:34:01 UTC 2005


Hi Guenter,

Please consider the patch below to centralize the upstream version of the
package in debian/changelog, instead of having it in three different
places.  

I know you are actively working on the jed-extra repository, so I do not
want to mess with your work.  

-- 
Rafael

Index: utils/build-from-scratch.sh
===================================================================
--- utils/build-from-scratch.sh	(revision 208)
+++ utils/build-from-scratch.sh	(working copy)
@@ -5,15 +5,14 @@
 # if everything goes well, this script will result in a subdir jed-extra/
 # with all needed sources and the results of a debbuild
 
-# upstream version
-VER=2.0
-
 # Get the jed-extra files from SVN
 # --------------------------------
 
 svn co svn+ssh://svn.debian.org/svn/pkg-jed/trunk/packages/jed-extra
 cd jed-extra
 
+# upstream version
+VER=`perl -ne '/\(([\d.]+)-/; print $1; exit' < debian/changelog`
 
 # Download the upstream tarball
 # -----------------------------
Index: debian/rules
===================================================================
--- debian/rules	(revision 208)
+++ debian/rules	(working copy)
@@ -11,7 +11,7 @@
 
 debroot = $(PWD)/debian/jed-extra
 # upstream version
-VER = 2.1
+VER = $(shell perl -ne '/\(([\d.]+)-/; print $1; exit' < debian/changelog)
 
 
 build:



More information about the Pkg-jed-devel mailing list