mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
d2f8d7ee1a
commit
d21d52d4a1
@ -58,14 +58,7 @@ fi
|
|||||||
# Check for svn and a svn repo.
|
# Check for svn and a svn repo.
|
||||||
if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then
|
if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then
|
||||||
rev=`echo $rev | awk '{print $NF}'`
|
rev=`echo $rev | awk '{print $NF}'`
|
||||||
changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l`
|
printf -- '-svn%s' "$rev"
|
||||||
|
|
||||||
# Are there uncommitted changes?
|
|
||||||
if [ $changes != 0 ]; then
|
|
||||||
printf -- '-svn%s%s' "$rev" -dirty
|
|
||||||
else
|
|
||||||
printf -- '-svn%s' "$rev"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# All done with svn
|
# All done with svn
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user