rsup - Upgrade RiveScript 1.x documents to the new 2.x standards.
rsup [--out --ext --backup --dontfixperl] <files or folders>
When RiveScript was rewritten to a new standard, a certain areas of backwards compatibility became broken. See the RiveScript::WD document for details of the incompatible changes.
This command-line tool can upgrade obsolete RiveScript code to fix these incompatibilities and allow it to be parsed by a RiveScript 2 interpreter.
Specify a directory to output the new documents. If not specified, the files being read from will be replaced with the new documents.
For any arguments that are directories, all files in that directory ending with this extension are read. Default is .rs
.rs
Specify this flag if you want backup files (such as those created by Emacs or gEdit) to be processed. The default is to not read these files.
When reading in Perl objects, rsup will, by default, attempt to fix the @_ lines to include $rs, the reference to the RS instance. Since this will modify the code of your object, you can specify this flag to disable this feature.
rsup
@_
$rs
After specifying command-line arguments, give rsup a list of directories or files to work on. For directories, they are opened and any RiveScript documents inside are automatically processed. For individual files, just these files will be processed.
This program is still under development. It tries its best to upgrade old RiveScript code to the new standards, but it's not perfect. It will output everything it changes to the terminal, but you may need to go through and make some custom tweaks to fix anything that it didn't translate properly.
Casey Kirsle, http://www.rivescript.com/
To install RiveScript, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RiveScript
CPAN shell
perl -MCPAN -e shell install RiveScript
For more information on module installation, please visit the detailed CPAN module installation guide.