geocsv/resources/public/img/map-pins/colours/generate.awk
Simon Brooke 7a3200a566
Sort of promising but not there.
The colours are wrong and the PNGs are all blank.
2020-01-31 20:25:23 +00:00

13 lines
347 B
Awk

#!/usr/bin/awk -f
BEGIN {
FS=",";
print( "#!/bin/bash");
print( "# Automatically generated bash script to generate all the named colours.");
}
{
gsub( / /, "-", $1);
printf( "cat Blank-pin.svg | sed 's/fill:#dddddc;/fill:%s/' > \"%s-pin.svg\"\n", tolower($2), $1);
printf( "inkscape %s-pin.svg --export-png=%s-pin.png\n", $1, $1);
}