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:
Yuri Pankov 2023-04-26 14:29:08 +02:00
parent a1db1097e6
commit 989a0e1d81

View file

@ -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)
{