Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d21d52d4 authored by Mike Frysinger's avatar Mike Frysinger Committed by Sam Ravnborg
Browse files

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: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent d2f8d7ee
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -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

	# All done with svn
	exit