DELTA 19337 0 14310
SVN  ˆ©^Jµ/ ˆj €X o‰£ ƒO‰vƒ …9€. Pî? …2“$€‚ aî. ƒ™$€‚ fM€n Ÿ0Š …! M… e¥t€ –m§v€‚r ƒkÁO€„p ’Æg vÚ RÛ€‚; QÝp€…" …Þb§ „nãv€…< gê'€D ës€ƒA )ì[‚ ‚yî€B ‚ñ€6 ‡%ód€h eû lý"€K þ€q Tî<£ Eï@€[cmdhelp.h"
#include "fc_types.h" /* LINE_BREAK */
#include "game.h"
#include "governmentclient_main.h"
#include "climisc.h"GOVvoid insert_client_build_info(char *outbuf, size_t outlen);

/* Needed for "About Freeciv" help */
const char *client_string = "freeciv-manual";

static char *ruleset = NULL;enum client_states client_state(void)
{
  return C_S_INITIAL;
}

bool client_nation_is_in_current_set(const struct nation_type *pnation)
{
  /* Currently, there is no way to select a nation set for freeciv-manual.
   * Then, let's assume we want to print help for all nations. */
  if (!load_rulesets(NULL, FALSE, FALSE)) {
    /* Failed to load correct ruleset */
    return FALSE;
  }

  for (manuals = 0; manuals < MANUAL_COUNT; manuals++) {
    int i;
    int ri;

    fc_snprintf(filename, sizeof(filename), "%s%d.html", game.server.rulesetdir    fprintf(doc, "<!-- Generated by freeciv-manual version %s -->\n\n",
            freeciv_datafile_version()SSET_ALL, levelcategory(pset))));

        /* first check if the setting is locked because this is included in
         * the function setting_is_changeable() */
        if ({
          char *help = command_extra_help(cmd);
          if (help) {
            size_t help_len = strlen(help) + 1;

            fc_break_lines(help, LINE_BREAK);
            help = html_special_chars(help, &help_len);
            fprintf(doc, _("<p>Description:</p>\n\n"));
            fprintf(doc, "<pre>%s</pre>\n\n", help);
            FC_FREE(help);
          }Transform"),
              /* xgettext:no-c-format */
              _("% of Road bonus"), _("turns"));
      fprintf(doc, "<th>%s<br/>%s</th>",
              _("Clean pollution"), _("Clean fallout"));
      ri = 0;
      if (game.control.num_road_types > 0) {
        fprintf(doc, "<th>");
      }
      road_type_iterate(proad) {
        if (++ri < game.control.num_road_types) {
          fprintf(doc, "%s<br/>", road_name_translation(proad));
        } else {
          /* Last one */
          fprintf(doc, "%s</th>", road_name_translation(proad));
        }
      } road_type_iterate_end;
      fprintf(doc, "</tr>\n\n"");
        }
        fprintf(doc, "<tr><td>%d / %d / %d</td></tr>\n</table></td>\n",
                pterrain->road_output_incr_pct[O_FOOD],
                pterrain->road_output_incr_pct[O_SHIELD],
                pterrain->road_output_incr_pct[O_TRADE]);

        fprintf(doc, "<td align=\"center\">%d / %d</td>"
        ri = 0;
        if (game.control.num_road_types > 0) {
          fprintf(doc, "<td>");
        }
        road_type_iterate(proad) {
          if (++ri < game.control.num_road_types) {
            fprintf(doc, "%d / ", terrain_extra_build_time(pterrain, ACTIVITY_GEN_ROAD,
                                                           road_extra_get(proad)));
          } else {
            fprintf(doc, "%d</td>", terrain_extra_build_time(pterrain, ACTIVITY_GEN_ROAD,
                                                             road_extra_get(proad)));
          }
        } road_type_iterate_end;
        fprintf(doc, "</tr>\n\n");
      } terrain_type_iterate_end;
        struct advance *obs_tech = NULL, text2[512];
          fc_snprintf(text2, sizeof(text2),
                      /* TRANS: improvement requires a feature to be absent. */
                      req->present ? "%s" : _("no %s"),
                      VUT_NONE != req->source.kind
                      ? universal_name_translation(&req->source,
                                                   text, sizeof(text))
                      : _("None"));
          fprintf(doc, "%s<br/>", text2);
        } requirement_vector_iterate_end;

        requirement_vector_iterate(&pimprove->obsolete_by, pobs) {
          if (pobs->source.kind == VUT_ADVANCE) {
            obs_tech = pobs->source.value.advance;
            break;
          }obs_tech != NULL
                ? advance_name_translation(obs_techGOVS:
      /* FIXME: this doesn't resemble the wiki manual at all. */
      fprintf(doc, _("<h1>Freeciv %s governments help</h1>\n\n"), VERSION_STRING);
      governments_iterate(pgov) {
        char buf[64000];
        fprintf(doc, "%s%s%s\n\n", SECTION_BEGIN,
                government_name_translation(pgov), SECTION_END);
        helptext_government(buf, sizeof(buf), NULL, NULL, pgov);
        fprintf(doc, "%s\n\n", buf);
      } governmentsly  int retval = EXIT_SUCCESS;

  init_nls();
  registry_module_initif (ruleset != NULL) {
        log_error(_("Multiple rulesets requested. Only one ruleset at time supported"));
        free(option);
      } else {
        ruleset = option;
      } else {
      fc_fprintf(stderr, _("Unrecognized option: \"%s\"\n"), argv[inx]);
      exit(EXIT_FAILURE/* Initialize game with default values */
  game_init();

  /* Set ruleset user requested in to use */
  if (ruleset != NULL) {
    sz_strlcpy(game.server.rulesetdir, ruleset);
  }

  settings_init(FALSEstruct cmdhelp *help = cmdhelp_new(argv[0]);

#ifdef DEBUG
    cmdhelp_add(help, "d",
                  /* TRANS: "debug" is exactly what user must type, do not translate. */
                _("debug NUM"),
                _("Set debug log level (%d to %d, or %d:file1,min,max:...)"),
                LOG_FATAL, LOG_DEBUG, LOG_DEBUG);
#else
    cmdhelp_add(help, "d",
                  /* TRANS: "debug" is exactly what user must type, do not translate. */
                _("debug NUM"),
                _("Set debug log level (%d to %d)"),
                LOG_FATAL, LOG_VERBOSE);
#endif /* DEBUG */
#ifndef NDEBUG
    cmdhelp_add(help, "F",
                  /* TRANS: "Fatal" is exactly what user must type, do not translate. */
                _("Fatal [SIGNAL]"),
                _("Raise a signal on failed assertion"));
#endif /* NDEBUG */
    cmdhelp_add(help, "h", "help",
                _("Print a summary of the options"));
    cmdhelp_add(help, "l",
                  /* TRANS: "log" is exactly what user must type, do not translate. */
                _("log FILE"),
                _("Use FILE as logfile"));
    cmdhelp_add(help, "r",
                  /* TRANS: "ruleset" is exactly what user must type, do not translate. */
                _("ruleset RULESET"),
                _("Make manual for RULESET"));
    cmdhelp_add(help, "v", "version",
                _("Print the version number"));

    /* The function below prints a header and footer for the options.
     * Furthermore, the options are sorted. */
    cmdhelp_display(help, TRUE, FALSE, TRUE);
    cmdhelp_destroy(help);

    exit(EXIT_SUCCESS);
  }

  if (!manual_command()) {
    retval = EXIT_FAILURE;
  }

  FC_FREE(ruleset);

  con_log_close();
  registry_module_close();

  return retvalmpty function required by helpdata
*****/
void insert_client_build_info(char *outbuf, size_t outlen)
{
  /* Nothing here */
}
ENDREP
id: 2m5.5jt.r27001/7075
type: file
pred: 2m5.5jt.r26872/57
count: 96
text: 27001 0 7048 21726 dcaa5a67f2b9d10ac8038cfc862c4d45
props: 10836 16751 111 0 2a5912525b098cb46a1301ee940f7617
cpath: /trunk/tools/civmanual.c
copyroot: 21464 /trunk/tools/civmanual.c

PLAIN
K 11
Makefile.am
V 24
file 4pk.5js.r25961/6125
K 11
civmanual.c
V 24
file 2m5.5jt.r27001/7075
K 10
download.c
V 25
file 4pl.5js.r26905/35893
K 10
download.h
V 25
file 4pm.5js.r26905/37103
K 9
modinst.c
V 25
file bj7.5js.r26905/37400
K 9
modinst.h
V 25
file 76i.5js.r26905/38295
K 7
mpcli.c
V 25
file y74.5js.r26905/35604
K 11
mpcmdline.c
V 25
file 73v.5js.r26905/36184
K 11
mpcmdline.h
V 25
file 73w.5js.r26905/37695
K 6
mpdb.c
V 25
file bjc.5js.r26905/38590
K 6
mpdb.h
V 25
file bje.5js.r26905/35017
K 12
mpgui_gtk2.c
V 25
file 4pn.5lm.r26905/36480
K 12
mpgui_gtk3.c
V 25
file 4pn.5ln.r26905/36791
K 12
mpgui_qt.cpp
V 25
file a65.5js.r26905/27283
K 10
mpgui_qt.h
V 25
file a67.5js.r26905/35309
K 19
mpgui_qt_worker.cpp
V 25
file vuz.5js.r26905/37992
K 17
mpgui_qt_worker.h
V 25
file vv1.5js.r26905/38877
K 7
ruledit
V 24
dir ssm.5js.r26905/34723
END
ENDREP
id: 4pj.5js.r27001/8198
type: dir
pred: 4pj.5js.r26905/39990
count: 228
text: 27001 7334 851 851 040e49c00bf4f1221d116cc9f6a5008f
props: 25526 0 300 0 6fd3530dab91e62ecb398957a0a66b2e
cpath: /trunk/tools
copyroot: 21464 /trunk/tools

PLAIN
K 9
ABOUT-NLS
V 24
file fu.5ck.r23462/85000
K 7
AUTHORS
V 24
file 5u.5ck.r22143/14016
K 7
COPYING
V 19
file 1h.0.r9643/400
K 9
ChangeLog
V 26
file 6l.5ck.r22811/6091752
K 7
INSTALL
V 22
file 6.5ck.r26104/4084
K 11
Makefile.am
V 21
file 59.5ck.r26978/44
K 4
NEWS
V 24
file 6m.5ck.r25634/30702
K 6
README
V 20
file 7.0.r4421/96382
K 2
ai
V 21
dir 8.5ck.r26975/3131
K 10
autogen.sh
V 24
file 12o.5ck.r25794/4003
K 9
bootstrap
V 23
dir 2p5.5ck.r26519/2055
K 6
client
V 22
dir d.5ck.r26992/14405
K 6
common
V 21
dir p.5ck.r27000/5847
K 12
configure.ac
V 25
file 149.5ck.r26952/69425
K 4
data
V 21
dir w.5ck.r26987/5339
K 12
dependencies
V 25
dir 2yu.5ck.r26905/200326
K 11
diff_ignore
V 23
file qq.5ck.r24665/2850
K 3
doc
V 23
dir k7.5ck.r26881/46389
K 10
fc_version
V 25
file 2lo.5en.r26992/14637
K 2
m4
V 23
dir 12p.5ck.r26993/2487
K 7
scripts
V 23
dir 2yo.5ck.r26112/1112
K 6
server
V 22
dir z.5ck.r26996/50245
K 5
tests
V 22
dir 2g9.5ck.r26668/853
K 5
tools
V 23
dir 4pj.5js.r27001/8198
K 12
translations
V 24
dir t0a.5ck.r26952/69189
K 7
utility
V 22
dir 1c.5ck.r26959/3124
K 3
vms
V 25
dir u9.5ck.r21528/1396085
K 5
win32
V 23
dir 2eu.5ck.r26997/3732
END
ENDREP
id: 3.5ck.r27001/9601
type: dir
pred: 3.5ck.r27000/7244
count: 18586
text: 27001 8432 1156 1156 42b09754b0ad5c48cb8f930bc669657e
props: 23244 4830 282 0 e4bb46e81629a60eef613b169b23a9ea
cpath: /trunk
copyroot: 15280 /trunk

PLAIN
K 8
branches
V 19
dir 1.0.r26999/5488
K 4
tags
V 19
dir 2.0.r25885/6524
K 5
trunk
V 21
dir 3.5ck.r27001/9601
K 7
website
V 21
dir 3ge.0.r22980/2263
END
ENDREP
id: 0.0.r27001/9990
type: dir
pred: 0.0.r27000/7633
count: 27001
text: 27001 9825 152 152 621f4a9e298d771eea5d39eb05148298
cpath: /
copyroot: 0 /

2m5.5jt.t27000-1 modify true false /trunk/tools/civmanual.c


9990 10137
