scripts/setlocalversion: shorten the make time when using svn
PATCH 1/1 scripts/setlocalversion: shorten the make time when using svn
From: Mike Frysinger <[email protected]>
Don't bother doing svn st as it takes a retarded amount of time when the source is cold
Signed-off-by Mike Frysinger <[email protected]>
Signed-off-by Bryan Wu <[email protected]>
--- scripts/setlocalversion | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)
scripts/setlocalversion +1 -8
@@ -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
Signature · 1 line
1.5.6.3
Quoted 4 lines · Bryan Wu
From: Mike Frysinger <[email protected]>
Don't bother doing
svn stas it takes a retarded amount of time when the source is cold
Applied to kbuild-fixes.
Sam