summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTorne Wuff <torne@wolfpuppy.org.uk>2011-12-31 16:30:14 +0000
committerTorne Wuff <torne@wolfpuppy.org.uk>2011-12-31 16:30:14 +0000
commit79f88e7f3986e0e044d121976f75314b9c59e282 (patch)
tree372f86c61511582c8881517000b44c730025d63d /tools
parent6fdc91e64f18ab57010198520b5031ce4f83565a (diff)
downloadrockbox-79f88e7f3986e0e044d121976f75314b9c59e282.tar.gz
rockbox-79f88e7f3986e0e044d121976f75314b9c59e282.zip
Remove bzr support from tools/version.sh.
Only I ever used this that I know of, and now we are migrating to git it's not needed (and won't work correctly, since we won't be svn-derived). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31479 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/version.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/tools/version.sh b/tools/version.sh
index 04c7651192..a1535aafc4 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -60,30 +60,6 @@ gitversion() {
60 fi 60 fi
61} 61}
62 62
63# Work out the latest svn id and also the latest bzr revno
64bzrversion() {
65
66 # look for a svn revno in the current head
67 svnver=`LANG=C bzr log -l1 $1 | grep '^ *svn revno: ' | cut -d : -f2 | cut -d ' ' -f 2`
68
69 if [ -n "$svnver" ]; then
70 # current head is a svn version so we don't care about bzr
71 version="r$svnver"
72 else
73 # look for a svn revno anywhere in history including in merges
74 svnver=`LANG=C bzr log -n0 $1 | grep '^ *svn revno: ' | head -n 1 | cut -d : -f2 | cut -d ' ' -f 2`
75 if [ -n "$svnver" ]; then
76 version="r$svnver+bzr`bzr revno $1`"
77 else
78 version="bzr`bzr revno $1`"
79 fi
80 fi
81 if ! bzr diff $1 >/dev/null; then
82 mod="M"
83 fi
84 echo "${version}${mod}"
85}
86
87# 63#
88# First locate the top of the src tree (passed in usually) 64# First locate the top of the src tree (passed in usually)
89# 65#
@@ -98,8 +74,6 @@ if [ -z $VERSION ]; then
98 # Ok, we need to derive it from the Version Control system 74 # Ok, we need to derive it from the Version Control system
99 if [ -d "$TOP/.git" ]; then 75 if [ -d "$TOP/.git" ]; then
100 VER=`gitversion $TOP` 76 VER=`gitversion $TOP`
101 elif [ -d "$TOP/.bzr" ]; then
102 VER=`bzrversion $TOP`
103 else 77 else
104 VER=`svnversion_safe $TOP`; 78 VER=`svnversion_safe $TOP`;
105 if [ "$VER" = "unknown" ]; then 79 if [ "$VER" = "unknown" ]; then