1
0
Fork 0

Add support for u-boot in svn and localversion-* files

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
utp
Mike Frysinger 2008-04-08 14:00:57 -04:00 committed by Wolfgang Denk
parent d23ff6827d
commit 92bad20ad7
1 changed files with 14 additions and 0 deletions

View File

@ -22,4 +22,18 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then
| read dummy; then
printf '%s' -dirty
fi
# Is this git on svn?
if git config --get svn-remote.svn.url >/dev/null; then
printf -- '-svn%s' "`git-svn find-rev $head`"
fi
fi
# Check for svn and a svn repo.
if rev=`svn info 2>/dev/null` ; then
rev=`echo "${rev}" | grep '^Revision' | awk '{print $NF}'`
printf -- '-svn%s' $rev
fi
# Check for any localversion-* files
printf '%s' "`cat localversion-* 2>/dev/null`"