The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 1/1] [Scripts] add svn revision information to setlocalversion
@ 2008-01-30 10:15 Bryan Wu
  2008-01-30 10:24 ` Sam Ravnborg
  0 siblings, 1 reply; 5+ messages in thread
From: Bryan Wu @ 2008-01-30 10:15 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel, Bryan Wu

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
---
 scripts/setlocalversion |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 52f032e..2d6645c 100644
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -25,6 +25,10 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then
 	# All done with git
 	exit
 fi
+# Check for svn and a svn repo.
+if rev=`svn info 2>/dev/null | grep '^Revision' | awk '{print $NF}'` ; then
+        printf -- '-svn%s' $rev
+fi
 
 # Check for mercurial and a mercurial repo.
 if hgid=`hg id 2>/dev/null`; then
-- 
1.5.3.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-02 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 10:15 [PATCH 1/1] [Scripts] add svn revision information to setlocalversion Bryan Wu
2008-01-30 10:24 ` Sam Ravnborg
2008-01-30 16:00   ` Bryan Wu
2008-01-30 16:39   ` [PATCH 1/1 try#2] " Bryan Wu
2008-02-02 18:24     ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox