FloatImg4PythonBinding/Fonderie/craplist2h.awk

21 lines
365 B
Awk
Executable File

#!/usr/bin/awk -f
#
# this utility script make a file who
# is includet by 'crapulator.h'
#
BEGIN {
print "// -----------------------------------"
print "// generated file, do not edit by hand !"
print "// -----------------------------------"
}
{
printf "#define CR_%s (%d)\n", $2, $1
}
END {
print "// generated file, do not edit by hand !"
}