There are three components: parser, xsl, cgi.

To install, edit the script "install.sh" and change the install paths as needed
or set (and export) the relevant environment variables in the shell.
Then start the script with the appropriate argument:

install.sh parser
    Installs the perl script and modules that parse METAR and TAF messages and
    create the XML.

    Requires the CPAN perl module XML::writer at runtime.

    configuration variables:
        METAF2XML_BIN
            directory for parser perl script
        METAF2XML_LIB
            directory for parser perl modules

install.sh xsl
    Installs the XSL example files to transform the XML to HTML and text.

    Requires an separate program, e.g. "xsltproc", or a browser capable of
    displaying XML with XSLT style sheets to do the actual transformation.

    configuration variables:
        METAF2XML_XSL
            directory for metaf*.xsl files

install.sh cgi
    Installs the CGI perl script for the web interface.

    Requires the components parser and xsl at runtime.

    configuration variables:
        METAF2XML_BIN, METAF2XML_LIB, METAF2XML_XSL: (see above)
        CGI_BIN_DIR
            directory for the CGI script
        CGI_DATA_DIR
            directory for METAR/TAF raw file data
        CGI_LOG_FILE
            path for log file
        CGI_TMP_DIR
            directory for temporary data
        CURL
            path and default options for curl
        CURL_PROXY_OPTS
            proxy option for curl

install.sh all
    Installs all of the above.
