# Rctool-1.1.1

**URL:** <https://www.ruby-forum.com/t/rctool-1-1-1/97112>\
**Category:** Ruby\
**Created:** [December 10, 2005, 4:55pm UTC](https://www.ruby-forum.com/t/rctool-1-1-1/97112 "2005-12-10T16:55:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubikitch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/0ea827/32.png) [@rubikitch](https://www.ruby-forum.com/u/rubikitch)\
**Post date:** [December 10, 2005, 4:55pm UTC](https://www.ruby-forum.com/t/rctool-1-1-1/97112/1 "2005-12-10T16:55:57Z")

</div>

Hi,

== Abstract  
RCtool is a small tool which makes/updates rcfiles automatically.

There is a rcfile in software each.  
For example, it is .zshrc in zsh, .emacs in Emacs and so on.

Please think about the scene which introduces a new EmacsLisp program  
into Emacs.  
You copy a .el file in the directory which is in load-path.  
You have to write setting in .emacs last.

I think that update of .emacs is easy if you introduce it once.  
However, please imagine a scene upgrading an EmacsLisp program.  
When the EmacsLisp code is largely modified, and setting did not have  
compatibility either, a user must modify .emacs by hand one by one.  
Changing .emacs by hand is boring and error-prone; changing .emacs  
automatically without any notification is extremely rude.

RCtool takes over this troublesome work.  
RCtool does the following work separately.

- RCtool makes the rcfiles based in contents of “the definition script”,  
and modified one part of rcfiles in a backup directory.
- RCtool shows the difference between the original and the modified if  
you need it.
- RCtool overwrites with rcfiles last.

A user understands which part changed clearly.

A developer modifies the definition script and can offer appropriate  
rcfiles to a user.

It is available at  
[http://www.rubyist.net/~rubikitch/computer/rctool/index.en.html](http://www.rubyist.net/~rubikitch/computer/rctool/index.en.html)

== What’s new

=== [2005/12/11] 1.1.1 released  
`set\_filenames’ bugfix on Windows.

=== [2005/11/15] 1.1.0 released  
New methodology to incorporate RCtool.

=== Download / Untar  
Please execute the following commands.

ruby -ropen-uri -e  
‘URI(“[http://www.rubyist.net/~rubikitch/archive/rctool-1.1.1.tar.gz](http://www.rubyist.net/~rubikitch/archive/rctool-1.1.1.tar.gz)”).read.display’

> rctool-1.1.1.tar.gz  
> tar xzvf rctool-1.1.1.tar.gz

When you failed, please download it from the next link.

- 

((\<rctool-1.1.1.tar.gz|URL:[http://www.rubyist.net/~rubikitch/archive/rctool-1.1.1.tar.gz](http://www.rubyist.net/~rubikitch/archive/rctool-1.1.1.tar.gz)\>))

=== Installation  
Execute setup.rb to install RCtool.  
ruby setup.rb

=== How to Incorporate RCtool  
Since version 1.1.0, RCtool uses new methodology to incorporate into  
your system.

It is assumed the following situation.

- There is a definition script called `foo-rctool.rb’.
- `bin/’ is a directory to put executables.

mkrctool generates an integrated script.

mkrctool foo-rctool.rb \> bin/foo-rctool

Of course if you modify `foo-rctool.rb', you must update `bin/foo-rctool’.  
Make or ((\<Rake|URL:[http://rake.rubyforge.org/](http://rake.rubyforge.org/)\>)) takes over such a  
cumbersome task.
