5 if __name__=='__main__':
7 print "Usage: %s <gpif export file> <save file>" % sys.argv[0]
10 f=open(sys.argv[1],'r').read()
11 o=open(sys.argv[2],'w')
13 # write every thing between the wave data and the TODO
14 datre = re.compile ( 'const char xdata .*?\};', re.S )
15 data = datre.findall(f)
17 o.write(dat.replace('\r\n','\n'))