mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
tzsetup: fix bootstrapping for github CI jobs
Move dump_zonetab() under HAVE_BSDDIALOG as the parsing code it relies on already is.
This commit is contained in:
parent
a1db1097e6
commit
989a0e1d81
|
@ -483,6 +483,27 @@ read_zones(void)
|
|||
fclose(fp);
|
||||
}
|
||||
|
||||
static void
|
||||
dump_zonetab(void)
|
||||
{
|
||||
struct country *cp;
|
||||
struct zone *zp;
|
||||
const char *cont;
|
||||
|
||||
for (cp = countries; cp->name != NULL; cp++) {
|
||||
printf("%s:%s\n", cp->tlc, cp->name);
|
||||
if (cp->nzones < 0) {
|
||||
cont = find_continent_name(cp->continent);
|
||||
printf(" %s:%s\n", cont, cp->filename);
|
||||
} else {
|
||||
TAILQ_FOREACH(zp, &cp->zones, link) {
|
||||
cont = find_continent_name(zp->continent);
|
||||
printf(" %s:%s\n", cont, zp->filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
make_menus(void)
|
||||
{
|
||||
|
@ -799,27 +820,6 @@ install_zoneinfo(const char *zoneinfo)
|
|||
return (rv);
|
||||
}
|
||||
|
||||
static void
|
||||
dump_zonetab(void)
|
||||
{
|
||||
struct country *cp;
|
||||
struct zone *zp;
|
||||
const char *cont;
|
||||
|
||||
for (cp = countries; cp->name != NULL; cp++) {
|
||||
printf("%s:%s\n", cp->tlc, cp->name);
|
||||
if (cp->nzones < 0) {
|
||||
cont = find_continent_name(cp->continent);
|
||||
printf(" %s:%s\n", cont, cp->filename);
|
||||
} else {
|
||||
TAILQ_FOREACH(zp, &cp->zones, link) {
|
||||
cont = find_continent_name(zp->continent);
|
||||
printf(" %s:%s\n", cont, zp->filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue