Skip to content

Commit

Permalink
kbuild,setlocalversion: shorten the make time when using svn
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Mike Frysinger authored and sravnborg committed Feb 15, 2009
1 parent d2f8d7e commit d21d52d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions scripts/setlocalversion
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d21d52d

Please sign in to comment.