NAME

rmrtfd - remove RTF and RTFD files


SYNOPSIS

rmrtfd [-shared [-link]] file ...


DESCRIPTION

rtfdtohtml will place all created files by default in the same directories as the corresponding source files (unless you use the -output option to specify a different location). The rmrtfd program is intended to selectively delete exactly those source files (i.e. RTF and RTFD text and EPS or TIFF image files). The remaining files will contain everything necessary for HTML viewing. Optionally, all non-HTML files may be collected in a common directory to avoid transmitting the same file multiple times.

File arguments given on the command line may be either RTF or RTFD files, or C / C++ / Objective-C source files that contain RTF information. All file arguments that are not RTF or RTFD files will be ignored.


Options

Rmrtfd currently supports the following options:

-shared or --shared
A special directory will be used to avoid storing duplicate files multiple times. Each file will be assigned a unique filename in this directory, and all generated HTML files will be updated to refer to this common directory for inline images and similar files. The name of the shared directory may be changed with the environment variable RTFDSHARED. If the directory already exists, new files will be added to it.

-link or --link
This option is only useful in combination with the -shared option. It preserves all files embedded in RTFD documents as links into the common directory, so that the link count will tell you how many HTML files use each shared item. Ordinarily, the embedded files will be deleted.


Warning

As running rmrtfd on a file removes the source file itself, the document can afterwards only be viewed as a HTML file. Be careful not to remove your original sources. You have been warned.


Examples

    rmrtfd test.rtfd        # delete test.rtfd/TXT.rtf ...
    rmrtfd *.rtf *.c        # delete all rtf files


ENVIRONMENT

Rmrtfd recognizes this environment variable, if set:

RTFDSHARED
name of the common directory (default is ``shared'')


FILES

./shared/*
all files collected so far


SEE ALSO

the rtfdtohtml.1 manpage, the rmhtml.1 manpage


AUTHOR

Elmar Ludwig < feludwig@informatik.Uni-Osnabrueck.DE >