Skip to contentSkip to conversation

scripts/setlocalversion: shorten the make time when using svn

PATCH In review Bryan Wu 2 participants 2 messages Feb 5, 2009 – Feb 15, 2009

lore
Share & tools
lore

Bryan Wu

author
#0 lore raw

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

---
 scripts/setlocalversion |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
scripts/setlocalversion +1 -8
index f6946cf..f1c4b35 100755
@@ -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
#1 lore raw
Quoted 4 lines · Bryan Wu

From: Mike Frysinger <[email protected]>

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

Applied to kbuild-fixes.

Sam