Create a string that contains the ANSI codes specified and return it
Test for the presence of the specified library, and output a
message describing the test using nicename. If nicename
is nil, the value in library is used to build a default.
Test for the presence of the specified library, and output a
message describing the problem using nicename. If
nicename is nil, the value in library is used to
build a default. If raaUrl and/or downloadUrl are
specified, they are also use to build a message describing how to find the
required library. If fatal is true, a missing library
will cause the program to abort.
Output msg as a ANSI-colored program/section header (white on
blue).
Output msg to STDERR and flush it.
Output the specified msg as an ANSI-colored error message (white
on red).
Output the specified msg as an ANSI-colored debugging message
(yellow on blue).
Erase the previous line (if supported by your terminal) and output the
specified msg instead.
Output a divider made up of length hyphen characters.
Output the specified msg colored in ANSI red and exit with a
status of 1.
Output the specified promptString as a prompt (in green) and
return the user’s input with leading and trailing spaces removed.
Prompt the user with the given promptString via prompt, substituting the given
default if the user doesn’t input anything.
Search for the program specified by the given progname in the
user’s PATH, and return the full path to it, or nil
if no such program is in the path.
Using the CVS log for the given file attempt to guess what the
next release version might be. This only works if releases are tagged with
tags like ‘RELEASE_x_y’.
Extract the project name (CVS Repository name) for the given directory.
Read the specified manifestFile, which is a text file describing
which files to package up for a distribution. The manifest should consist
of one or more lines, each containing one filename or shell glob pattern.
Given a filelist like that returned by readManifest, remove the entries
therein which match the Regexp objects in the given antimanifest
and return the resultant Array.
Given a documentation catalogFile, extract the title, if
available, and return it. Otherwise generate a title from the name of the
CVS module.
Given a documentation catalogFile, extract the name of the file to
use as the initally displayed page. If extraction fails, the
default will be used if it exists. Returns nil if there
is no main file to be found.
Given a documentation catalogFile, extract an upload URL for RDoc.
Given a documentation catalogFile, extract a CVS web frontend URL
for RDoc.
Given a documentation catalogFile, try extracting the given
keyword’s value from it. Keywords are lines that look like:
# <keyword>: <value>
Returns nil if the catalog file was unreadable or didn’t
contain the specified keyword.
Given a documentation catalogFile, which is in the same format as
that described by readManifest,
read and expand it, and then return a list of those files which appear to
have RDoc documentation in them. If catalogFile is nil or does not
exist, the MANIFEST file is used instead.
Open a file and filter each of its lines through the given block a
line at a time. The return value of the block is used as the new
line, or omitted if the block returns nil or false.
Execute the specified shell command, read the results, and return
them. Like a %x{} that returns an Array instead of a String.
Execute a block with $VERBOSE set to false, restoring it to its
previous value before returning.
Try the specified code block, printing the given