Esempio n. 1
0
/* Print information about the version of this program and dependent
 * modules.
 */
static svn_error_t *
version(const char *progname,
        svn_boolean_t quiet,
        apr_pool_t *pool)
{
    svn_stringbuf_t *version_footer =
        svn_stringbuf_create(_("The following repository access (RA) modules "
                               "are available:\n\n"),
                             pool);

    SVN_ERR(svn_ra_print_modules(version_footer, pool));
    return svn_opt_print_help3(NULL, ensure_appname(progname, pool),
                               TRUE, quiet, version_footer->data,
                               NULL, NULL, NULL, NULL, NULL, pool);
}
Esempio n. 2
0
/* Handle the "help" subcommand.  Implements `svn_opt_subcommand_t'.  */
static svn_error_t *
help_cmd(apr_getopt_t *os,
         void *baton,
         apr_pool_t *pool)
{
    const char *header =
        _("general usage: svnrdump SUBCOMMAND URL [-r LOWER[:UPPER]]\n"
          "Type 'svnrdump help <subcommand>' for help on a specific subcommand.\n"
          "Type 'svnrdump --version' to see the program version and RA modules.\n"
          "\n"
          "Available subcommands:\n");

    return svn_opt_print_help3(os, "svnrdump", FALSE, FALSE, NULL, header,
                               svnrdump__cmd_table, svnrdump__options, NULL,
                               NULL, pool);
}
Esempio n. 3
0
static svn_error_t * version(svn_boolean_t quiet, apr_pool_t *pool)
{
  const char *fs_desc_start
    = _("The following repository back-end (FS) modules are available:\n\n");

  svn_stringbuf_t *version_footer;

  version_footer = svn_stringbuf_create(fs_desc_start, pool);
  SVN_ERR(svn_fs_print_modules(version_footer, pool));

#ifdef SVN_HAVE_SASL
  svn_stringbuf_appendcstr(version_footer,
                           _("\nCyrus SASL authentication is available.\n"));
#endif

  return svn_opt_print_help3(NULL, "svnserve", TRUE, quiet, version_footer->data,
                             NULL, NULL, NULL, NULL, NULL, pool);
}
Esempio n. 4
0
static svn_error_t *
version(apr_pool_t *pool)
{
  return svn_opt_print_help3(NULL, "svnversion", TRUE, FALSE, NULL, NULL,
                             NULL, NULL, NULL, NULL, pool);
}