From: Mike Frysinger Date: Thu, 5 Feb 2009 08:13:32 +0000 (+0800) Subject: kbuild,setlocalversion: shorten the make time when using svn X-Git-Tag: upstream/snapshot3+hdmi~20225^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d21d52d4a155e36d4dc93d642cd52cb63f7ef91b;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Bryan Wu Signed-off-by: Sam Ravnborg --- diff --git a/scripts/setlocalversion b/scripts/setlocalversion index f6946cf..f1c4b35 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -58,14 +58,7 @@ fi # Check for svn and a svn repo. if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then rev=`echo $rev | awk '{print $NF}'` - changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l` - - # Are there uncommitted changes? - if [ $changes != 0 ]; then - printf -- '-svn%s%s' "$rev" -dirty - else - printf -- '-svn%s' "$rev" - fi + printf -- '-svn%s' "$rev" # All done with svn exit