#!/usr/bin/perl -w # # Init script for mondo with Project-Builder # use ProjectBuilder::VCS; use ProjectBuilder::Filter; use ProjectBuilder::Env; my %pb; $pb{'pkg'} = "PBPKG"; $pb{'ver'} = "PBVER"; $pb{'tag'} = "PBTAG"; $pb{'rev'} = "PBREV"; $pb{'proj'} = "PBPROJ"; $pb{'date'} = "PBDATE"; $pb{'repo'} = "PBREPO"; $pb{'extdir'} = "PBEXTDIR"; $pb{'realpkg'} = "PBREALPKG"; # Export documentation to generate what is needed # Action needs to be pbinit my ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir) = pb_env_init($pb{'proj'},undef,"pbinit"); my ($scheme,$uri) = pb_vcs_init(undef); pb_vcs_export($uri,"$ENV{'PBDIR'}/mondo-doc/mindi.8","."); # should call filter_file here my $ptr = pb_get_filters($pb{'pkg'}); pb_filter_file_inplace($ptr,"mindi.8",\%pb);