rmrtfd - remove RTF and RTFD files
rmrtfd [-shared [-link]] file ...
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.
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.
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.
rmrtfd test.rtfd # delete test.rtfd/TXT.rtf ...
rmrtfd *.rtf *.c # delete all rtf files
Rmrtfd recognizes this environment variable, if set:
- RTFDSHARED
-
name of the common directory (default is ``shared'')
- ./shared/*
-
all files collected so far
the rtfdtohtml.1 manpage, the rmhtml.1 manpage
Elmar Ludwig < feludwig@informatik.Uni-Osnabrueck.DE
>