summaryrefslogtreecommitdiffstats
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.tar.bz2
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() {
fi
}
-# Work out the latest svn id and also the latest bzr revno
-bzrversion() {
-
- # look for a svn revno in the current head
- svnver=`LANG=C bzr log -l1 $1 | grep '^ *svn revno: ' | cut -d : -f2 | cut -d ' ' -f 2`
-
- if [ -n "$svnver" ]; then
- # current head is a svn version so we don't care about bzr
- version="r$svnver"
- else
- # look for a svn revno anywhere in history including in merges
- svnver=`LANG=C bzr log -n0 $1 | grep '^ *svn revno: ' | head -n 1 | cut -d : -f2 | cut -d ' ' -f 2`
- if [ -n "$svnver" ]; then
- version="r$svnver+bzr`bzr revno $1`"
- else
- version="bzr`bzr revno $1`"
- fi
- fi
- if ! bzr diff $1 >/dev/null; then
- mod="M"
- fi
- echo "${version}${mod}"
-}
-
#
# First locate the top of the src tree (passed in usually)
#
@@ -98,8 +74,6 @@ if [ -z $VERSION ]; then
# Ok, we need to derive it from the Version Control system
if [ -d "$TOP/.git" ]; then
VER=`gitversion $TOP`
- elif [ -d "$TOP/.bzr" ]; then
- VER=`bzrversion $TOP`
else
VER=`svnversion_safe $TOP`;
if [ "$VER" = "unknown" ]; then