# Gr\_modtool rename option

**URL:** <https://www.ruby-forum.com/t/gr-modtool-rename-option/233740>\
**Category:** GNU Radio\
**Created:** [January 7, 2015, 2:32pm UTC](https://www.ruby-forum.com/t/gr-modtool-rename-option/233740 "2015-01-07T14:32:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [January 7, 2015, 2:32pm UTC](https://www.ruby-forum.com/t/gr-modtool-rename-option/233740/1 "2015-01-07T14:32:40Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Hey list,

I missed an option to rename a block I once created via modtool. Thus  
I coded it. You can find it on github [1]. It is supposed to go  
through all the created files and change all the old name occurrences  
to the new one. Also, it renames the files that where created, updates  
CMakeLists files, swig file, etc. This should be a big aid when it  
comes to block renaming.  
If you included a block in another one, or did some inheritance thing  
with a ‘noblock’, you still have to update that by hand.

I hope it’ll help you.

Cheers  
Johannes

[1] [https://github.com/jdemel/gnuradio/tree/modtool/rename](https://github.com/jdemel/gnuradio/tree/modtool/rename)  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1

iQIcBAEBAgAGBQJUrSPmAAoJEO7fmkDsqywMnFoP/39igNop1A/wZwXhuIYYtwu+  
piIEREs/v37flBA+UTILNAKZrkiRp2jmleaxJbsoKzEXSWtTXQYDsgVwqelQllFX  
imKHMPYUDZ9V4e+3nUEz20E2otw9rj4AX45/3lpiUXmUDMF3huG8vxm/DpVnWkYQ  
C8qQ2oCg4Kvj5malfGCYe1nTUS+hQkPAlucoShpn3DJG184g0NhcqxQX9CseQ0lx  
ePEygYaOnYe8BzaQr+BWMybn/uW4eIL4qxPjY933cdhLNKjCJGlOcVo78jAwokyl  
XtaH3bC+KuSfGFLk/67BwIJ0FFXkIpg6vOaXzwz30lTb515iSfcN3XLcpeFzTvp9  
OzRNYTnFP0vEk/vnGEPAXaSZVXIWJWVgGYHh0UMy8m8khpwk0FulrhVQUwSvI3II  
NhjXJX0L13qMMDymlOWSN9qOcemZeBSP3wTO2kzieHw1c4BbhiWZY+GGWGgHjK71  
YxH8edTcfhi7ImjX3W/QfQ/f2FaQfr5BDY+v0rUCkFCv16IK3KzpSX6x/C3bwPQy  
3xexfDmn6VkjDYnn+lZ0XFhKVuvV0zjVaeEHMlPK8MdWVffUlFzESvuAg0LrWWNK  
Zg1Np9VoTsGI/bRHQml1xl+BtomoxZzPFZA8FQeyZCPKLv4GcYcDRe6vuootTFGT  
S8M/rtI9q2KFemi897Y8  
=l7Eq  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![jdejong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/a9a28c/32.png) [@jdejong](https://www.ruby-forum.com/u/jdejong)\
**Post date:** [January 7, 2015, 3:51pm UTC](https://www.ruby-forum.com/t/gr-modtool-rename-option/233740/2 "2015-01-07T15:51:05Z")

</div>

On 01/07/2015 01:17 PM, Johannes D. wrote:

> I missed an option to rename a block I once created via modtool. Thus  
> I coded it. You can find it on github [1]. It is supposed to go

Which, everyone, is the correct response to a problem such as this.

> through all the created files and change all the old name occurrences  
> to the new one. Also, it renames the files that where created, updates  
> CMakeLists files, swig file, etc. This should be a big aid when it  
> comes to block renaming.  
> If you included a block in another one, or did some inheritance thing  
> with a ‘noblock’, you still have to update that by hand.
> 
> I hope it’ll help you.

Could you please squash those 3 commits into one and remove the  
superfluous print statements, and then submit a pull request? That would  
be most awesome,

M
