def add_file_normal(f, targetdir, generator,script, source):
basename = os.path.basename(f)<EOL>if targetdir != "<STR_LIT:.>":<EOL><INDENT>relativepath = os.path.join(targetdir, basename)<EOL><DEDENT>else:<EOL><INDENT>relativepath = basename<EOL><DEDENT>relpath = os.path.relpath(f, os.getcwd())<EOL>filetype = '<STR_LIT:data>'<EOL>if script:<EOL><INDENT>filetype = '<STR_LIT>'<EOL>if generator:<EOL><INDENT>filetype = '<STR_LIT>'<EOL><DEDENT><DEDENT>update = OrderedDict([<EOL>('<STR_LIT:type>', filetype),<EOL>('<STR_LIT>', generator),<EOL>('<STR_LIT>', relativepath),<EOL>('<STR_LIT:content>', "<STR_LIT>"),<EOL>('<STR_LIT:source>', source),<EOL>('<STR_LIT>', f),<EOL>('<STR_LIT>', relpath)<EOL>])<EOL>update = annotate_record(update)<EOL>return (basename, update)<EOL>
Add a normal file including its source