@ -43,10 +43,6 @@ def main():
with open ( args . config , ' r ' ) as fd :
with open ( args . config , ' r ' ) as fd :
data = json . load ( fd )
data = json . load ( fd )
for enabled_feature in args . features :
if enabled_feature not in data [ ' features ' ] :
sys . exit ( f ' Error: the requested feature { enabled_feature } does not exist in { args . config } . ' )
fonts_to_run = args . font
fonts_to_run = args . font
if args . removec and args . font :
if args . removec and args . font :
fonts_to_run = [ ]
fonts_to_run = [ ]
@ -66,13 +62,11 @@ def main():
if fonts_to_run and name not in fonts_to_run :
if fonts_to_run and name not in fonts_to_run :
continue
continue
sources = font . pop ( ' sources ' )
sources = font . pop ( ' sources ' )
if ' patches ' in font :
patches = font . pop ( ' patches ' ) if ' patches ' in font else [ ]
patches = font . pop ( ' patches ' )
features = font . pop ( ' features ' ) if ' features ' in font else [ ]
else :
patches = None
for enabled_feature in args . features :
for enabled_feature in args . features :
if name in data [ ' features ' ] [ enabled_feature ] :
if enabled_feature in features :
sources . extend ( data[ ' features' ] [ enabled_featur e] [ nam e] )
sources . extend ( features[ enabled_featur e] )
font [ ' fonts ' ] = [ FontArg ( thing ) for thing in sources ]
font [ ' fonts ' ] = [ FontArg ( thing ) for thing in sources ]
line = gen_lvconv_line ( f ' { name } .c ' , * * font )
line = gen_lvconv_line ( f ' { name } .c ' , * * font )
subprocess . check_call ( line )
subprocess . check_call ( line )