summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--HACKING2
-rw-r--r--README4
-rw-r--r--doc/ranger.12
-rw-r--r--ranger/__init__.py2
-rw-r--r--ranger/__main__.py9
5 files changed, 13 insertions, 6 deletions
diff --git a/HACKING b/HACKING
index 0424b047..1794c8e5 100644
--- a/HACKING
+++ b/HACKING
@@ -92,4 +92,4 @@ X.Y.Z, where:
 
 * X: Major version, milestone
 * Y: Minor version, odd number => stable version
-* Z: Revision
+* Z: Revision, may be omitted if zero
diff --git a/README b/README
index babcfbbb..912b8718 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
-Ranger v.1.1.2
-==============
+Ranger v.1.2
+============
 
 Ranger is a free console file manager that gives you greater flexibility
 and a good overview of your files without having to leave your *nix console.
diff --git a/doc/ranger.1 b/doc/ranger.1
index fab42496..10f78d47 100644
--- a/doc/ranger.1
+++ b/doc/ranger.1
@@ -1,4 +1,4 @@
-.TH RANGER 1 ranger-1.1.2
+.TH RANGER 1 ranger-1.2
 .SH NAME
 ranger - visual file manager
 .\"-----------------------------------------
diff --git a/ranger/__init__.py b/ranger/__init__.py
index 57e0e5a2..282fd2b1 100644
--- a/ranger/__init__.py
+++ b/ranger/__init__.py
@@ -20,7 +20,7 @@ import sys
 from ranger.ext.openstruct import OpenStruct
 
 __license__ = 'GPL3'
-__version__ = '1.1.2'
+__version__ = '1.2'
 __credits__ = 'Roman Zimbelmann'
 __author__ = 'Roman Zimbelmann'
 __maintainer__ = 'Roman Zimbelmann'
diff --git a/ranger/__main__.py b/ranger/__main__.py
index 28284ef5..5a8411d6 100644
--- a/ranger/__main__.py
+++ b/ranger/__main__.py
@@ -30,7 +30,14 @@ def parse_arguments():
 	from optparse import OptionParser, SUPPRESS_HELP
 	from ranger import __version__, USAGE, DEFAULT_CONFDIR
 	from ranger.ext.openstruct import OpenStruct
-	parser = OptionParser(usage=USAGE, version='ranger ' + __version__)
+
+	minor_version = __version__[2:]  # assumes major version number is <10
+	if '.' in minor_version:
+		minor_version = minor_version[:minor_version.find('.')]
+	version_tag = ' (stable)' if int(minor_version) % 2 == 1 else ' (testing)'
+	version_string = 'ranger ' + __version__ + version_tag
+
+	parser = OptionParser(usage=USAGE, version=version_string)
 
 	parser.add_option('-d', '--debug', action='store_true',
 			help="activate debug mode")