diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-04 07:56:17 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-04 07:56:17 -0800 |
commit | 519cb688072008363e091be3f291c1b5779e2ba8 (patch) | |
tree | dc5e251ff0eac8ae2f022858c0d7526299235f1d /scripts/setlocalversion | |
parent | 2f98735c9c24ea1f0d40a364d4e63611b689b795 (diff) | |
parent | 8891fec65ac5b5a74b50c705e31b66c92c3eddeb (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild:
scsi: fix dependency bug in aic7 Makefile
kbuild: add svn revision information to setlocalversion
kbuild: do not warn about __*init/__*exit symbols being exported
Move Kconfig.instrumentation to arch/Kconfig and init/Kconfig
Add HAVE_KPROBES
Add HAVE_OPROFILE
Create arch/Kconfig
Fix ARM to play nicely with generic Instrumentation menu
kconfig: ignore select of unknown symbol
kconfig: mark config as changed when loading an alternate config
kbuild: Spelling/grammar fixes for config DEBUG_SECTION_MISMATCH
Remove __INIT_REFOK and __INITDATA_REFOK
kbuild: print only total number of section mismatces found
Diffstat (limited to 'scripts/setlocalversion')
-rwxr-xr-x[-rw-r--r--] | scripts/setlocalversion | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 52f032e409a..1c1bdaf7348 100644..100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -45,3 +45,19 @@ if hgid=`hg id 2>/dev/null`; then # All done with mercurial exit fi + +# Check for svn and a svn repo. +if rev=`svn info 2>/dev/null | grep '^Revision'`; 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%s' "$rev" -dirty "$changes" + else + printf -- '-svn%s' "$rev" + fi + + # All done with svn + exit +fi |