Commit d21d52d4a155e36d4dc93d642cd52cb63f7ef91b

Authored by Mike Frysinger
Committed by Sam Ravnborg
1 parent d2f8d7ee1a

kbuild,setlocalversion: shorten the make time when using svn

Don't bother doing `svn st` as it takes a retarded amount of time when
the source is cold

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

Showing 1 changed file with 1 additions and 8 deletions Side-by-side Diff

scripts/setlocalversion
... ... @@ -58,14 +58,7 @@
58 58 # Check for svn and a svn repo.
59 59 if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then
60 60 rev=`echo $rev | awk '{print $NF}'`
61   - changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l`
62   -
63   - # Are there uncommitted changes?
64   - if [ $changes != 0 ]; then
65   - printf -- '-svn%s%s' "$rev" -dirty
66   - else
67   - printf -- '-svn%s' "$rev"
68   - fi
  61 + printf -- '-svn%s' "$rev"
69 62  
70 63 # All done with svn
71 64 exit