addxcom.pl has currently been tested on Max OS X only.
It is likely that it will work on other variants of UNIX, as well as on Linux,
and on Windows (with Perl installed), as it uses filesystem-independent
file addressing.

TO USE addxcom.pl
-----------------
(1) Place the script in the dircetory containing your website's directory.
(2) Open terminal.
(3) cd to this directory.
(4) Type: perl addxcom.pl <NAME_OF_WEBSITE_DIRECTORY>

The script will create a modified copy of your website in <NAME_OF_WEBSITE_DIRECTORY>_XCOM

XCom and TST mods are added to .php files
TST mods are added to .htm and .html files
All other files are copied (unmodified).
The dmx/ directory is copied (unmodified) despite containing .php files.

EXCLUDING MODS FROM PHP FILES
-----------------------------
To protect a file include a comment on the first line:
eg: <?php // DMXCLUDE ENG HEAD TST ?>
This is equivalent to: <?php // DMXCLUDE ALL ?>

You can also selectively exclude modifications:
eg: <?php // DMXCLUDE ENG ?>
eg: <?php // DMXCLUDE HEAD ?>
eg: <?php // DMXCLUDE ENG TST ?>

ENG  = Xcomponent engine (the XComponent libraries and options file)
HEAD = Header modifications
TST  = TST link and form modifications
