diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-28 18:13:48 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-28 18:13:48 -0500 |
commit | 96faec945f39cab38403f60f515bff43660b4dab (patch) | |
tree | e6681330a42303bb34be80d347cd01ff79f5b80a /scripts/setlocalversion | |
parent | 2926328554fa740518e2a6585b2cefb01e5f65f3 (diff) | |
parent | 9bb482476c6c9d1ae033306440c51ceac93ea80c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next: (25 commits)
allow stripping of generated symbols under CONFIG_KALLSYMS_ALL
kbuild: strip generated symbols from *.ko
kbuild: simplify use of genksyms
kernel-doc: check for extra kernel-doc notations
kbuild: add headerdep used to detect inclusion cycles in header files
kbuild: fix string equality testing in tags.sh
kbuild: fix make tags/cscope
kbuild: fix make incompatibility
kbuild: remove TAR_IGNORE
setlocalversion: add git-svn support
setlocalversion: print correct subversion revision
scripts: improve the decodecode script
scripts/package: allow custom options to rpm
genksyms: allow to ignore symbol checksum changes
genksyms: track symbol checksum changes
tags and cscope support really belongs in a shell script
kconfig: fix options to check-lxdialog.sh
kbuild: gen_init_cpio expands shell variables in file names
remove bashisms from scripts/extract-ikconfig
kbuild: teach mkmakfile to be silent
...
Diffstat (limited to 'scripts/setlocalversion')
-rwxr-xr-x | scripts/setlocalversion | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion index 72d233528ade..f6946cf99ce1 100755 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion | |||
@@ -19,6 +19,11 @@ if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then | |||
19 | fi | 19 | fi |
20 | fi | 20 | fi |
21 | 21 | ||
22 | # Is this git on svn? | ||
23 | if git config --get svn-remote.svn.url >/dev/null; then | ||
24 | printf -- '-svn%s' "`git-svn find-rev $head`" | ||
25 | fi | ||
26 | |||
22 | # Are there uncommitted changes? | 27 | # Are there uncommitted changes? |
23 | git update-index --refresh --unmerged > /dev/null | 28 | git update-index --refresh --unmerged > /dev/null |
24 | if git diff-index --name-only HEAD | grep -v "^scripts/package" \ | 29 | if git diff-index --name-only HEAD | grep -v "^scripts/package" \ |
@@ -51,7 +56,7 @@ if hgid=`hg id 2>/dev/null`; then | |||
51 | fi | 56 | fi |
52 | 57 | ||
53 | # Check for svn and a svn repo. | 58 | # Check for svn and a svn repo. |
54 | if rev=`svn info 2>/dev/null | grep '^Revision'`; then | 59 | if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then |
55 | rev=`echo $rev | awk '{print $NF}'` | 60 | rev=`echo $rev | awk '{print $NF}'` |
56 | changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l` | 61 | changes=`svn status 2>/dev/null | grep '^[AMD]' | wc -l` |
57 | 62 | ||