~sheosi/bake/nimrod

« back to all changes in this revision

Viewing changes to src/module-man.vala

  • Committer: Robert Ancell
  • Date: 2011-11-25 23:40:31 UTC
  • Revision ID: robert.ancell@gmail.com-20111125234031-pll4ysr2bvsv75l1
Rename to Bake

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
public class ManModule : BuildModule
2
2
{
3
 
    public override void generate_rules (BuildFile build_file)
 
3
    public override void generate_rules (Recipe recipe)
4
4
    {
5
 
        var man_page_list = build_file.variables.lookup ("man.pages");
 
5
        var man_page_list = recipe.variables.lookup ("man.pages");
6
6
        if (man_page_list != null)
7
7
        {
8
8
            var pages = split_variable (man_page_list);
17
17
                    warning ("Not a valid man page name '%s'", page);
18
18
                    continue;
19
19
                }
20
 
                var dir = "%s/man/man%d".printf  (build_file.data_directory, number);
21
 
                build_file.add_install_rule (page, dir);
 
20
                var dir = "%s/man/man%d".printf  (recipe.data_directory, number);
 
21
                recipe.add_install_rule (page, dir);
22
22
            }
23
23
        }
24
24
    }