]> git.pld-linux.org Git - packages/ekg2.git/commitdiff
- with svn: embed svn rev number into version string (thx, wiechu)
authorpawelz <pawelz@pld-linux.org>
Sun, 14 Nov 2010 23:05:01 +0000 (23:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ekg2.spec -> 1.131

ekg2.spec

index b738a03068bc0eafba05468b337430298368aa83..f206a091f10a05864bae6e5939b9ec54efb19915 100644 (file)
--- a/ekg2.spec
+++ b/ekg2.spec
@@ -338,8 +338,16 @@ Wtyczka xosd dla ekg2.
 %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
This page took 0.088051 seconds and 4 git commands to generate.