FloatImg4PythonBinding/Fonderie/craplist2str.awk

20 lines
420 B
Awk
Raw Normal View History

2020-12-29 16:40:26 +01:00
#!/usr/bin/awk -f
BEGIN {
2020-12-30 14:42:44 +01:00
print "// -----------------------------------"
print "// generated file, do not edit by hand";
print "// -----------------------------------"
print "Crapulor CrapL[] = {";
2020-12-29 16:40:26 +01:00
}
{
2020-12-30 14:42:44 +01:00
printf " { CR_%s, \"%s\", %d, %f }, // id=%d\n",
$2, $2, $3, $4, $1;
2020-12-29 16:40:26 +01:00
}
END {
2020-12-30 14:42:44 +01:00
print " { -1, NULL }"
print " };"
2020-12-29 16:40:26 +01:00
print "// generated file, do not edit by hand"
}