pike.git / lib / modules / Calendar.pmod / tzdata / ziguard.awk

version» Context lines:

pike.git/lib/modules/Calendar.pmod/tzdata/ziguard.awk:47:    if (Rule_Eire || Zone_Dublin_post_1968) {    if ((Rule_Eire \    || (Zone_Dublin_post_1968 && $(in_comment + 3) == "IST/GMT")) \    == vanguard) {    uncomment = in_comment    } else {    comment_out = !in_comment    }    }    -  # If this line should differ due to Namibia using Rule SAVE suffixes, +  # If this line should differ due to Namibia using negative SAVE values,    # uncomment the desired version and comment out the undesired one.    Rule_Namibia = /^#?Rule[\t ]+Namibia[\t ]/    Zone_using_Namibia_rule \    = (zone == "Africa/Windhoek" \    && ($(in_comment + 2) == "Namibia" \    || (1994 <= $(in_comment + 4) && $(in_comment + 4) <= 2017) \    || in_comment + 3 == NF))    if (Rule_Namibia || Zone_using_Namibia_rule) {    if ((Rule_Namibia \    ? ($(in_comment + 9) ~ /^-/ \
pike.git/lib/modules/Calendar.pmod/tzdata/ziguard.awk:80:    if (comment_out) {    sub(/^/, "#")    }       # In rearguard format, change the Japan rule line with "Sat>=8 25:00"    # to "Sun>=9 1:00", to cater to zic before 2007 and to older Java.    if (!vanguard && $1 == "Rule" && $7 == "Sat>=8" && $8 == "25:00") {    sub(/Sat>=8/, "Sun>=9")    sub(/25:00/, " 1:00")    } +  +  # In rearguard format, change the Morocco lines with negative SAVE values +  # to use positive SAVE values. +  if (!vanguard && $1 == "Rule" && $2 == "Morocco" && $4 == 2018 \ +  && $6 == "Oct") { +  sub(/\t2018\t/, "\t2017\t")    } -  +  if (!vanguard && $1 == "Rule" && $2 == "Morocco" && 2019 <= $3) { +  if ($9 == "0") { +  sub(/\t0\t/, "\t1:00\t") +  } else { +  sub(/\t-1:00\t/, "\t0\t") +  } +  } +  if (!vanguard && $1 == "1:00" && $2 == "Morocco" && $3 == "+01/+00") { +  sub(/1:00\tMorocco\t\+01\/\+00$/, "0:00\tMorocco\t+00/+01") +  } + }      # If a Link line is followed by a Zone line for the same data, comment   # out the Link line. This can happen if backzone overrides a Link   # with a Zone.   /^Link/ {    linkline[$3] = NR   }   /^Zone/ {    sub(/^Link/, "#Link", line[linkline[$2]])   }      { line[NR] = $0 }      END {    for (i = 1; i <= NR; i++)    print line[i]   }