=== modified file 'stagebuilder.prolog' --- stagebuilder.prolog 2011-11-17 10:56:17 +0000 +++ stagebuilder.prolog 2011-11-17 09:17:50 +0000 @@ -567,19 +567,9 @@ ]), gentoo_build_stage4(Name, Dir). -printnl(Text) :- - print(Text), - nl. - -main([ ]) :- - findall(Name , target(_, Name, _), Names), - maplist(printnl, Names). - -main([Name, Dir]) :- - target(Commands, Name, Dir), +main(_Argv) :- + target(Commands, Name, variable('1')), print('#!/bin/zsh\n\n# Generated by ProSys stagebuilder\n# Stage name: '), print(Name), nl, print_cmds(Commands). -main([Name]) :- main([Name, variable('1')]). -