packages: ekg2/ekg2.spec - with svn: embed svn rev number into version stri...

pawelz pawelz at pld-linux.org
Mon Nov 15 00:05:08 CET 2010


Author: pawelz                       Date: Sun Nov 14 23:05:09 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- with svn: embed svn rev number into version string (thx, wiechu)

---- Files affected:
packages/ekg2:
   ekg2.spec (1.130 -> 1.131) 

---- Diffs:

================================================================
Index: packages/ekg2/ekg2.spec
diff -u packages/ekg2/ekg2.spec:1.130 packages/ekg2/ekg2.spec:1.131
--- packages/ekg2/ekg2.spec:1.130	Wed Nov 10 10:30:24 2010
+++ packages/ekg2/ekg2.spec	Mon Nov 15 00:05:01 2010
@@ -339,8 +339,16 @@
 %else
 %setup -qcT
 cd ..
-svn -q export --force http://toxygen.net/svn/ekg2/trunk %{name}-%{version}
+repo="http://toxygen.net/svn/ekg2/trunk"
+svn -q export --force $repo %{name}-%{version}
 cd -
+v=$(LANG=C svn info $repo/INSTALL 2>/dev/null|sed -n 's/^Revision: \([0-9]\+\)$/\1/p')
+if [ "$v" ]; then
+    echo SVN-rev.$v
+    v="SVN rev.$v"
+    sed -i "s/AM_INIT_AUTOMAKE(ekg2, CVS)/AM_INIT_AUTOMAKE(ekg2, \"$v\")/" configure.ac
+fi
+
 %endif
 
 %patch0 -p1
@@ -551,6 +559,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.131  2010/11/14 23:05:01  pawelz
+- with svn: embed svn rev number into version string (thx, wiechu)
+
 Revision 1.130  2010/11/10 09:30:24  pawelz
 - up to 20101110
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ekg2/ekg2.spec?r1=1.130&r2=1.131&f=u



More information about the pld-cvs-commit mailing list