Use script to generate fsdata.c file