Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=======
RTShell
rtshell
=======

Introduction
============

RTShell provides commands used to manage individual RT components and
rtshell provides commands used to manage individual RT components and
managers, as well as complete RT Systems. It can be used with the
OpenRTM-aist middleware or middlewares that use a compatible CORBA-based
introspection system.
Expand All @@ -24,7 +24,7 @@ components on low-resource systems, systems where a GUI is not available
(particularly where no network connection is available to manage
components from another computer), as well as those who face other
difficulties using RTSystemEditor. Being familiar with using a
command-line is a benefit when using these commands of RTShell.
command-line is a benefit when using these commands of rtshell.

This software is developed at the National Institute of Advanced
Industrial Science and Technology. Approval number
Expand All @@ -41,12 +41,12 @@ Requirements

omniORB-py 4.x is required.

RTShell requires rtctree. It must be installed for the commands to function.
rtshell requires rtctree. It must be installed for the commands to function.

The commands that work with RtsProfile files require rtsprofile. It must be
installed for these commands to function/

RTShell requires Python 2.7. It will not function with an earlier version of
rtshell requires Python 2.7. It will not function with an earlier version of
Python. It has not been tested with Python 3 and it is likely that several
changes will be necessary to make it function using this version of Python.

Expand All @@ -55,7 +55,7 @@ rtprint, rtinject and rtlog require the Python version of OpenRTM-aist.
Sphinx must be installed to build the documentation, if installing from source
(method 2).

If RTShell is installed using pip (method 1, below), RTCTree and RTSProfile
If rtshell is installed using pip (method 1, below), RTCTree and RTSProfile
will be installed automatically. omniORB-py and OpenRTM-python must still be
installed manually.

Expand All @@ -70,7 +70,7 @@ There are several methods of installation available:
a. Install pip if it is not already installed.
See https://pip.pypa.io/en/latest/installing/

b. Execute the following command to install RTShell::
b. Execute the following command to install rtshell::

$ pip install rtshell

Expand All @@ -92,7 +92,7 @@ There are several methods of installation available:
$ cd /home/blurgle/src/
$ tar -xvzf rtshell.tar.gz

b. Run setup.py to install RTShell to your default Python installation::
b. Run setup.py to install rtshell to your default Python installation::

$ python setup.py install

Expand Down Expand Up @@ -126,7 +126,7 @@ Documentation is available in the form of man pages (on Windows, these
are available as HTML files). These will be installed under
``${prefix}/share/man``. You must add this folder to your system's
``$MANPATH`` environment variable to be able to use them. For example,
if you installed RTShell into /home/blag, add the following line to your
if you installed rtshell into /home/blag, add the following line to your
``.bashrc``::

export MANPATH=/home/blag/share/man:${MANPATH}
Expand Down Expand Up @@ -236,7 +236,7 @@ Changelog
- rtresurrect: Don't recreate existing connections.
- rtteardown: Fail if the connector ID doesn't match.
- rtresurrect/rtstart/rtstop/rtteardown: Accept input from standard input.
- Refactored former rtsshell commands into RTShell-style libraries.
- Refactored former rtsshell commands into rtshell-style libraries.
- Added tests.


Expand Down
6 changes: 3 additions & 3 deletions README_ja.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
=======
RTShell
rtshell
=======

イントロダクション
==================

RTShell は、ネームサーバ上に登録されているRTコンポーネントをシェルから
rtshell は、ネームサーバ上に登録されているRTコンポーネントをシェルから
管理することができるツールです。コンポーネントを
activate/deactivate/resetしたり、ポートの接続を行うことができます。RTシ
ステムを管理することもできます。
Expand Down Expand Up @@ -110,7 +110,7 @@ clone」を使うこともできます。パッチを送りたがったら、こ

ドキュメントはマンページとして提供します(Windowsの場合はHTMLに提供しま
す)。``${prefix}/share/man``にインストールされます。このパスを
``$MANPATH``という環境変数に追加する必要です。例えば、RTShellは
``$MANPATH``という環境変数に追加する必要です。例えば、rtshellは
``/home/blurgle``にインストールされた場合、以下の行を``.bashrc``に追加して
ください::

Expand Down
6 changes: 3 additions & 3 deletions installer/rtshell.wxs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Name="RTShell 4.2.1"
<Product Name="RTShell 4.2.2"
Manufacturer="AIST"
Id="A999A734-5509-11E5-89AA-D4BED9A6AE6D"
UpgradeCode="BC9FBF12-5509-11E5-89AA-D4BED9A6AE6D"
Language="1033"
Codepage="1252"
Version="4.2.1">
Version="4.2.2">
<!--Language="1041" Codepage="932" for Japanese-->
<Package Id="*"
Keywords="Installer"
Description="RTShell 4.2.1 installer"
Description="RTShell 4.2.2 installer"
Comments="RTShell is a product of the National Institute for Advanced Industrial Science and Technology, Japan"
Manufacturer="AIST"
InstallerVersion="400"
Expand Down
18 changes: 9 additions & 9 deletions installer/rtshell_module.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<Module Id="RTShell42"
Language="1033"
Codepage="1252"
Version="4.2.1">
Version="4.2.2">
<!--Language="1041" Codepage="932" for Japanese-->
<Package Id="33717363-5E00-48C0-9BD8-8B694262D7C0"
Keywords="Installer"
Description="RTShell 4.2.1 installer"
Description="RTShell 4.2.2 installer"
Comments="RTShell is a product of the National Institute for Advanced Industrial Science and Technology, Japan"
Manufacturer="AIST"
InstallerVersion="400"
Expand All @@ -30,7 +30,7 @@
</Directory>
</Directory>
</Directory>
<Directory Id="RTShellInfo" Name="rtshell-4.2.1.dist-info">
<Directory Id="RTShellInfo" Name="rtshell-4.2.2.dist-info">
</Directory>
</Directory>
</Directory>
Expand Down Expand Up @@ -170,12 +170,12 @@
</DirectoryRef>
<DirectoryRef Id="RTShellInfo">
<Component Id="RTShellInfo" Guid="375256E1-9272-47D6-8D86-3A2FE86B77C9">
<File Id="RTShellDESCRIPTION.rst" Source="C:\Python27\Lib\site-packages\rtshell-4.2.1.dist-info\DESCRIPTION.rst" KeyPath="yes"/>
<File Id="RTShellMETADATA" Source="C:\Python27\Lib\site-packages\rtshell-4.2.1.dist-info\METADATA"/>
<File Id="RTShellmetadata.json" Source="C:\Python27\Lib\site-packages\rtshell-4.2.1.dist-info\metadata.json"/>
<File Id="RTShellRECORD" Source="C:\Python27\Lib\site-packages\rtshell-4.2.1.dist-info\RECORD"/>
<File Id="RTShelltop_level.txt" Source="C:\Python27\Lib\site-packages\rtshell-4.2.1.dist-info\top_level.txt"/>
<File Id="RTShellWHEEL" Source="C:\Python27\Lib\site-packages\rtshell-4.2.1.dist-info\WHEEL"/>
<File Id="RTShellDESCRIPTION.rst" Source="C:\Python27\Lib\site-packages\rtshell-4.2.2.dist-info\DESCRIPTION.rst" KeyPath="yes"/>
<File Id="RTShellMETADATA" Source="C:\Python27\Lib\site-packages\rtshell-4.2.2.dist-info\METADATA"/>
<File Id="RTShellmetadata.json" Source="C:\Python27\Lib\site-packages\rtshell-4.2.2.dist-info\metadata.json"/>
<File Id="RTShellRECORD" Source="C:\Python27\Lib\site-packages\rtshell-4.2.2.dist-info\RECORD"/>
<File Id="RTShelltop_level.txt" Source="C:\Python27\Lib\site-packages\rtshell-4.2.2.dist-info\top_level.txt"/>
<File Id="RTShellWHEEL" Source="C:\Python27\Lib\site-packages\rtshell-4.2.2.dist-info\WHEEL"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="PythonScripts">
Expand Down
2 changes: 1 addition & 1 deletion rtshell/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'''


RTSH_VERSION = '4.2.1'
RTSH_VERSION = '4.2.2'


# vim: tw=79
Expand Down
15 changes: 12 additions & 3 deletions rtshell/post_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,24 @@ def add_shell_support(prefix, bashrc_path=None):

def post_install_unix(prefix, bashrc, interactive, remove=False):
# Link the manpages to the manpage directory under the prefix
ans = raw_input('Link man pages? ') if interactive else 'y'
if sys.version_info[0] == 2:
ans = raw_input('Link man pages? ') if interactive else 'y'
else:
ans = input('Link man pages? ') if interactive else 'y'
if ans.lower() == 'y' or ans.lower() == 'yes':
link_man_pages(prefix, remove)
# Link documentation to <prefix>/share/doc/rtshell
ans = raw_input('Link documentation? ') if interactive else 'y'
if sys.version_info[0] == 2:
ans = raw_input('Link documentation? ') if interactive else 'y'
else:
ans = input('Link documentation? ') if interactive else 'y'
if ans.lower() == 'y' or ans.lower() == 'yes':
link_documentation(prefix, remove)
# Add sourcing of share/rtshell/shell_support to .bashrc or .bash_profile
ans = raw_input('Add shell support to .bashrc? ') if interactive else 'y'
if sys.version_info[0] == 2:
ans = raw_input('Add shell support to .bashrc? ') if interactive else 'y'
else:
ans = input('Add shell support to .bashrc? ') if interactive else 'y'
if ans.lower() == 'y' or ans.lower() == 'yes':
add_shell_support(prefix, bashrc_path=bashrc)

Expand Down
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,12 @@ def config_bash_compl(self):
COMPOPT_NOSPACE = 'compopt -o nospace'
COMPOPT_FILENAME = 'compopt -o filenames'
COMPLETE_NOSPACE = '-o nospace'
with open(os.path.join('data', 'bash_completion.in'), 'rt') as f:
bash_comp = f.read()
bash_comp = bash_comp.decode('utf-8')
if sys.version_info[0] == 2:
with open(os.path.join('data', 'bash_completion.in'), 'rt') as f:
bash_comp = f.read()
else:
with open(os.path.join('data', 'bash_completion.in'), 'rt', encoding='utf-8') as f:
bash_comp = f.read()
if sys.platform == 'darwin':
bash_comp = bash_comp.replace('@COMPOPT_NOSPACE@', ':')
bash_comp = bash_comp.replace('@COMPOPT_FILENAMES@', ':')
Expand Down Expand Up @@ -387,7 +390,7 @@ def run(self):


setuptools.setup(name='rtshell',
version='4.2.1',
version='4.2.2',
description='Shell commands for managing RT Components and RT Systems.',
author='Geoffrey Biggs and contributors',
author_email='geoffrey.biggs@aist.go.jp',
Expand Down