summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/modtool_rename.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-04-15 21:02:51 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-04-15 21:09:19 +0200
commit8cfc8b3408916ccb156fc25102bc1d9346bc004b (patch)
tree5c38adfedca3f4f4073d0621840ea578dd67ed4d /gr-utils/python/modtool/modtool_rename.py
parent036264ef5c8e2376acd426a99ca42d29390e3e2a (diff)
parentbdf85171b8a35004cdbf634f48ff696787b5fbde (diff)
Merge remote-tracking branch 'upstream/master' into refactoring
Diffstat (limited to 'gr-utils/python/modtool/modtool_rename.py')
-rw-r--r--gr-utils/python/modtool/modtool_rename.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-utils/python/modtool/modtool_rename.py b/gr-utils/python/modtool/modtool_rename.py
index 8f1b250c00..4d3f5cb17e 100644
--- a/gr-utils/python/modtool/modtool_rename.py
+++ b/gr-utils/python/modtool/modtool_rename.py
@@ -33,9 +33,9 @@ import Cheetah.Template
class ModToolRename(ModTool):
- """ Add block to the out-of-tree module. """
+ """ Rename a block in the out-of-tree module. """
name = 'rename'
- aliases = ('insert',)
+ aliases = ('mv',)
def __init__(self):
ModTool.__init__(self)
@@ -168,7 +168,7 @@ class ModToolRename(ModTool):
grcfile = './grc/' + module + '_' + old + '.xml'
self._run_file_replace(grcfile, old, new)
self._run_cmakelists('./grc/', old, new)
- self._run_file_rename('./grc/', old, new)
+ self._run_file_rename('./grc/', module + '_' + old, module + '_' + new)
def _run_cmakelists(self, path, first, second):
filename = path + 'CMakeLists.txt'