Branch: Tag:

2016-11-27

2016-11-27 19:04:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Calendar.mkrules: Adjusted output somewhat.

663:   void collect_rules(string file)   {    int n=0; -  werror("reading %O...\n",file); +  werror("Reading %O...\n",file);    string s=Stdio.read_bytes(file),t;    if (!s)    {
724:    array(string) files = am[1..];    if (!sizeof(files))    { -  werror("defaulting to reading zonefiles from %s...", +  werror("Defaulting to reading zonefiles from %s...\n",    combine_path(__DIR__, "tzdata"));    files = get_dir(combine_path(__DIR__, "tzdata"));    files = map(sort(files),
743:    }    map(files, collect_rules);    -  write("thinking...\n"); +  write("Thinking...\n");       string t="#pike "+__MAJOR__+"."+__MINOR__+"\n\n" + TZrules_base;   
753:    tzrules=compile_string(t)();       mv("TZrules.pmod","TZrules.pmod~"); -  werror("writing TZrules.pmod (%d bytes)...",sizeof(t)); +  werror("Writing TZrules.pmod (%d bytes)...",sizeof(t));    Stdio.File("TZrules.pmod","wtc")->write(t);    werror("\n");   
807:    "// "+"-"*70+"\n");       mv("TZs.h","TZs.h~"); -  werror("writing TZs.h (%d bytes)...",sizeof(t)); +  werror("Writing TZs.h (%d bytes)...",sizeof(t));    Stdio.File("TZs.h","wtc")->write(t);    werror("\n");   
889:    }       mv("TZnames.pmod","TZnames.pmod~"); -  werror("writing TZnames.pmod (%d bytes)...",sizeof(t)); +  werror("Writing TZnames.pmod (%d bytes)...",sizeof(t));    Stdio.File("TZnames.pmod","wtc")->write(t);    werror("\n");