Fix mapper to work with current code

4.2.0 broke over.awk.
This commit is contained in:
Markus Armbruster 2008-07-04 17:31:33 -04:00
parent 801780043f
commit 67a9a8d96a

View file

@ -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) {