pike.git / lib / modules / Calendar.pmod / mkrules.pike

version» Context lines:

pike.git/lib/modules/Calendar.pmod/mkrules.pike:718:    throw(err);    }   }      int main(int ac,array(string) am)   {    array(string) files = am[1..];    if (!sizeof(files))    {    werror("defaulting to reading zonefiles from %s...", -  combine_path(__FILE__, "../tzdata")); -  files = get_dir(combine_path(__FILE__, "../tzdata")); +  combine_path(__DIR__, "tzdata")); +  files = get_dir(combine_path(__DIR__, "tzdata"));    files = map(sort(files),    lambda(string fname) {    if ((< ".gitignore", "Makefile", "Theory",    "factory", "leapseconds", >)[fname] ||    (upper_case(fname) == fname) ||    has_prefix(fname, "solar") ||    has_suffix(fname, ".awk") ||    has_suffix(fname, ".list") ||    has_suffix(fname, ".pl") ||    has_suffix(fname, ".sh") ||    has_suffix(fname, ".tab")) return 0; -  return combine_path(__FILE__, "../tzdata", fname); +  return combine_path(__DIR__, "tzdata", fname);    }) - ({ 0 });    }    map(files, collect_rules);       write("thinking...\n");       string t="#pike "+__MAJOR__+"."+__MINOR__+"\n\n" + TZrules_base;       foreach (arules,MyRule r)    t+=r->dump();