bash script to generate sysmap.h header