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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/mkrules.pike:739:    has_suffix(fname, ".pl") ||    has_suffix(fname, ".sh") ||    has_suffix(fname, ".tab")) return 0;    return combine_path(__FILE__, "../tzdata", fname);    }) - ({ 0 });    }    map(files, collect_rules);       write("thinking...\n");    -  string t=TZrules_base; +  string t="#pike "+__MAJOR__+"."+__MINOR__+"\n\n" + TZrules_base;       foreach (arules,MyRule r)    t+=r->dump();       tzrules=compile_string(t)();       mv("TZrules.pmod","TZrules.pmod~");    werror("writing TZrules.pmod (%d bytes)...",sizeof(t));    Stdio.File("TZrules.pmod","wtc")->write(t);    werror("\n");