Fix mapper to work with current code
4.2.0 broke over.awk.
This commit is contained in:
parent
801780043f
commit
67a9a8d96a
1 changed files with 2 additions and 2 deletions
|
@ -8,13 +8,13 @@ BEGIN {
|
||||||
FS="[ \t\n,]+";
|
FS="[ \t\n,]+";
|
||||||
}
|
}
|
||||||
|
|
||||||
/^World size is [0-9]+ by [0-9]+./ {
|
/^World size is [0-9]+ by [0-9]+\./ {
|
||||||
width = $4;
|
width = $4;
|
||||||
height= $6;
|
height= $6;
|
||||||
system("ppmmake white " (width+1)*scale " " height*scale " | ppmtopgm | pgmtopbm >over.pbm");
|
system("ppmmake white " (width+1)*scale " " height*scale " | ppmtopgm | pgmtopbm >over.pbm");
|
||||||
}
|
}
|
||||||
|
|
||||||
/.*#.*name.*tech.*research.*education.*happiness.*cap-location/ {
|
/.*#.*name.*tech.*research.*education.*happiness.*capital/ {
|
||||||
getline;
|
getline;
|
||||||
while (NF>4) {
|
while (NF>4) {
|
||||||
if ($2>0 && $2<90) {
|
if ($2>0 && $2<90) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue