Skip to content

[WIP] [rtmbuild] Allow idl dir name with version#1058

Closed
pazeshun wants to merge 1 commit intostart-jsk:masterfrom
pazeshun:allow-versioned-idl-dir
Closed

[WIP] [rtmbuild] Allow idl dir name with version#1058
pazeshun wants to merge 1 commit intostart-jsk:masterfrom
pazeshun:allow-versioned-idl-dir

Conversation

@pazeshun
Copy link
Copy Markdown
Collaborator

Related to start-jsk/rtmros_hironx#527 (comment)
I'll add detailed information when I make other PRs requiring this PR.

@pazeshun
Copy link
Copy Markdown
Collaborator Author

$ ipython
Python 2.7.6 (default, Nov 13 2018, 12:45:42) 
Type "copyright", "credits" or "license" for more information.

IPython 1.2.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import re

In [2]: re.sub("test1/idl/(.+).h", r"test2/idl/\1.h", "test_test1/idl/hoge.h")
Out[2]: 'test_test2/idl/hoge.h'

In [3]: re.sub("test1/idl(.*)/(.+).h", r"test2/idl\1/\2.h", "test_test1/idl/hoge.h")
Out[3]: 'test_test2/idl/hoge.h'

In [4]: re.sub("test1/idl(.*)/(.+).h", r"test2/idl\1/\2.h", "test_test1/idl_315_1_9/hoge.h")
Out[4]: 'test_test2/idl_315_1_9/hoge.h'

In [5]: re.sub("test1/idl(.*)/(.+).h", r"test2/idl\1/\2.h", "test_test1/idl_315_1_10/hoge.h")
Out[5]: 'test_test2/idl_315_1_10/hoge.h'

In [6]: re.sub("test1/idl/(.+).h", r"test2/idl/\1.h", "test_test1/idl_315_1_9/hoge.h")
Out[6]: 'test_test1/idl_315_1_9/hoge.h'

@pazeshun
Copy link
Copy Markdown
Collaborator Author

Temporarily included in start-jsk/rtmros_hironx#533

@pazeshun pazeshun closed this Nov 22, 2018
@pazeshun pazeshun deleted the allow-versioned-idl-dir branch November 22, 2018 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant