mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 12:28:08 +01:00
Centralized version number in setup.py
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
.\" Written by Robby Workman <rworkman@slackware.com>
|
.\" Written by Robby Workman <rworkman@slackware.com>
|
||||||
.TH WICD-MANAGER-SETTINGS.CONF 5 "June 2008" "wicd-1.5.0"
|
.TH WICD-MANAGER-SETTINGS.CONF 5 "June 2008" "wicd-%VERSION%"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
wicd-manager-settings.conf \- contains settings that control Wicd's behavior
|
wicd-manager-settings.conf \- contains settings that control Wicd's behavior
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.\" Written by Robby Workman <rworkman@slackware.com>
|
.\" Written by Robby Workman <rworkman@slackware.com>
|
||||||
.TH WICD-WIRED-SETTINGS.CONF 5 "June 2008" "wicd-1.5.0"
|
.TH WICD-WIRED-SETTINGS.CONF 5 "June 2008" "wicd-%VERSION%"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
wicd-wired-settings.conf \- controls Wicd's wired network settings
|
wicd-wired-settings.conf \- controls Wicd's wired network settings
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.\" Written by Robby Workman <rworkman@slackware.com>
|
.\" Written by Robby Workman <rworkman@slackware.com>
|
||||||
.TH WICD-WIRELESS-SETTINGS.CONF 5 "June 2008" "wicd-1.5.0"
|
.TH WICD-WIRELESS-SETTINGS.CONF 5 "June 2008" "wicd-%VERSION%"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
wicd-wired-settings.conf \- controls Wicd's wireless network settings
|
wicd-wired-settings.conf \- controls Wicd's wireless network settings
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.\" Written by Robby Workman <rworkman@slackware.com>
|
.\" Written by Robby Workman <rworkman@slackware.com>
|
||||||
.TH WICD 8 "June 2008" "wicd-1.5.0"
|
.TH WICD 8 "June 2008" "wicd-%VERSION%"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
.B Wicd
|
.B Wicd
|
||||||
\- Wired and Wireless Network Connection Manager
|
\- Wired and Wireless Network Connection Manager
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ current = os.path.dirname(os.path.realpath(__file__)) + '/'
|
|||||||
|
|
||||||
# All directory paths *MUST* end in a /
|
# All directory paths *MUST* end in a /
|
||||||
|
|
||||||
|
version = '%VERSION%'
|
||||||
|
|
||||||
# DIRECTORIES
|
# DIRECTORIES
|
||||||
|
|
||||||
lib = '%LIB%'
|
lib = '%LIB%'
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -213,6 +213,8 @@ class configure(Command):
|
|||||||
for line in item_in.readlines():
|
for line in item_in.readlines():
|
||||||
for item, value in values:
|
for item, value in values:
|
||||||
line = line.replace('%' + str(item.upper().replace('-','_')) + '%', str(value))
|
line = line.replace('%' + str(item.upper().replace('-','_')) + '%', str(value))
|
||||||
|
|
||||||
|
line = line.replace('%VERSION%', str(VERSION_NUM))
|
||||||
|
|
||||||
item_out.write(line)
|
item_out.write(line)
|
||||||
|
|
||||||
|
|||||||
@@ -632,14 +632,14 @@ class TrayIcon(object):
|
|||||||
def usage():
|
def usage():
|
||||||
""" Print usage information. """
|
""" Print usage information. """
|
||||||
print """
|
print """
|
||||||
wicd 1.50
|
wicd %s
|
||||||
wireless (and wired) connection daemon front-end.
|
wireless (and wired) connection daemon front-end.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
\t-n\t--no-tray\tRun wicd without the tray icon.
|
\t-n\t--no-tray\tRun wicd without the tray icon.
|
||||||
\t-h\t--help\t\tPrint this help information.
|
\t-h\t--help\t\tPrint this help information.
|
||||||
\t-a\t--no-animate\tRun the tray without network traffic tray animations.
|
\t-a\t--no-animate\tRun the tray without network traffic tray animations.
|
||||||
"""
|
""" % wpath.version
|
||||||
|
|
||||||
def setup_dbus(force=True):
|
def setup_dbus(force=True):
|
||||||
global bus, daemon, wireless, wired, DBUS_AVAIL
|
global bus, daemon, wireless, wired, DBUS_AVAIL
|
||||||
|
|||||||
@@ -132,8 +132,7 @@ class WicdDaemon(dbus.service.Object):
|
|||||||
anything >= 0. This number is effective starting wicd v1.2.0.
|
anything >= 0. This number is effective starting wicd v1.2.0.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
version = '1.6.0'
|
return wpath.version
|
||||||
return version
|
|
||||||
|
|
||||||
@dbus.service.method('org.wicd.daemon')
|
@dbus.service.method('org.wicd.daemon')
|
||||||
def SetWiredInterface(self, interface):
|
def SetWiredInterface(self, interface):
|
||||||
@@ -1447,7 +1446,7 @@ class WiredDaemon(dbus.service.Object):
|
|||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
print """
|
print """
|
||||||
wicd 1.6.0
|
wicd %s
|
||||||
wireless (and wired) connection daemon.
|
wireless (and wired) connection daemon.
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
@@ -1457,7 +1456,7 @@ Arguments:
|
|||||||
\t-n\t--no-poll\tDon't monitor network status.
|
\t-n\t--no-poll\tDon't monitor network status.
|
||||||
\t-o\t--no-stdout\tDon't redirect stdout.
|
\t-o\t--no-stdout\tDon't redirect stdout.
|
||||||
\t-h\t--help\t\tPrint this help.
|
\t-h\t--help\t\tPrint this help.
|
||||||
"""
|
""" % wpath.version
|
||||||
|
|
||||||
def daemonize():
|
def daemonize():
|
||||||
""" Disconnect from the controlling terminal.
|
""" Disconnect from the controlling terminal.
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ current = os.path.dirname(os.path.realpath(__file__)) + '/'
|
|||||||
|
|
||||||
# All directory paths *MUST* end in a /
|
# All directory paths *MUST* end in a /
|
||||||
|
|
||||||
|
version = '1.6.0'
|
||||||
|
|
||||||
# DIRECTORIES
|
# DIRECTORIES
|
||||||
|
|
||||||
lib = '/usr/lib/wicd/'
|
lib = '/usr/lib/wicd/'
|
||||||
|
|||||||
Reference in New Issue
Block a user