void PrintVersionBanner(const char *component)
{
const char *text[] =
   {
   "",
   component,
   "",
   NameVersion(),
#ifdef HAVE_NOVA
   Nova_NameVersion(),
#endif
#ifdef HAVE_CONSTELLATION
   Constellation_NameVersion(),
#endif
   NULL
   };

printf("\n");
AgentBanner(text);
printf("\n");
printf("Copyright (C) CFEngine AS 2008-%d\n", BUILD_YEAR);
printf("See Licensing at http://cfengine.com/3rdpartylicenses\n");
}
Exemple #2
0
static void TexinfoHeader(FILE *fout)
{
    fprintf(fout,
            "\\input texinfo-altfont\n"
            "\\input texinfo-logo\n"
            "\\input texinfo\n"
            "@selectaltfont{cmbright}\n"
            "@setlogo{CFEngineFrontPage}\n"
            "@c *********************************************************************\n"
            "@c\n"
            "@c  This is an AUTO_GENERATED TEXINFO file. Do not submit patches against it.\n"
            "@c  Refer to the the component .texinfo files instead when patching docs.\n"
            "@c\n"
            "@c ***********************************************************************\n"
            "@c %%** start of header\n"
            "@setfilename cf3-Reference.info\n"
            "@settitle CFEngine reference manual\n"
            "@setchapternewpage odd\n"
            "@c %%** end of header\n"
            "@titlepage\n"
            "@title CFEngine Reference Manual\n" "@subtitle Auto generated, self-healing knowledge\n" "@subtitle %s\n"
#ifdef HAVE_NOVA
            "@subtitle %s\n"
#endif
            "@author cfengine.com\n"
            "@c @smallbook\n"
            "@fonttextsize 10\n"
            "@page\n"
            "@vskip 0pt plus 1filll\n"
            "@cartouche\n"
            "Under no circumstances shall CFEngine AS be liable for errors or omissions\n"
            "in this document. All efforts have been made to ensure the correctness of\n"
            "the information contained herein.\n"
            "@end cartouche\n"
            "Copyright @copyright{} 2008,2010 to the year of issue CFEngine AS\n"
            "@end titlepage\n"
            "@c *************************** File begins here ************************\n"
            "@ifinfo\n"
            "@dircategory CFEngine Training\n"
            "@direntry\n"
            "* cfengine Reference:\n"
            "                        CFEngine is a language based framework\n"
            "                        designed for configuring and maintaining\n"
            "                        Unix-like operating systems attached\n"
            "                        to a TCP/IP network.\n"
            "@end direntry\n"
            "@end ifinfo\n"
            "@ifnottex\n"
            "@node Top\n"
            "@top CFEngine-AutoReference\n"
            "@end ifnottex\n"
            "@menu\n"
            "* Getting started::\n"
            "* A simple crash course::\n"
            "* How to run CFEngine 3 examples::\n"
            "* A complete configuration::\n"
            "* Control Promises::\n"
            "* Bundles for common::\n"
            "* Bundles for agent::\n"
            "* Bundles for server::\n"
            "* Bundles for knowledge::\n"
            "* Bundles for monitor::\n"
            "* Special functions::\n"
            "* Special Variables::\n"
            "* Logs and records::\n"
            "@end menu\n"
            "@ifhtml\n"
            "@html\n"
            "<a href=\"#Contents\"><h1>COMPLETE TABLE OF CONTENTS</h1></a>\n"
            "<h2>Summary of contents</h2>\n"
            "@end html\n" "@end ifhtml\n" "@iftex\n" "@contents\n" "@end iftex\n", NameVersion()
#ifdef HAVE_NOVA
            , Nova_NameVersion()
#endif
        );
}