source: ProjectBuilder/projects/mondorescue/pbconf/branches/3.0/mindi/pbinit@ 1442

Last change on this file since 1442 was 1442, checked in by Bruno Cornec, 12 years ago
  • Addes extdir to the filtering system as now mandatory in pb.
  • Property svn:executable set to *
File size: 736 bytes
RevLine 
[384]1#!/usr/bin/perl -w
2#
3# Init script for mondo with Project-Builder
4#
[418]5use ProjectBuilder::CMS;
6use ProjectBuilder::Filter;
7use ProjectBuilder::Env;
[384]8
[554]9my %pb;
10$pb{'pkg'} = "PBPKG";
11$pb{'ver'} = "PBVER";
12$pb{'tag'} = "PBTAG";
13$pb{'rev'} = "PBREV";
14$pb{'proj'} = "PBPROJ";
15$pb{'date'} = "PBDATE";
16$pb{'repo'} = "PBREPO";
[1442]17$pb{'extdir'} = "PBEXTDIR";
[384]18
19# Export documentation to generate what is needed
20
[418]21# Action needs to be pbinit
[554]22my ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir) = pb_env_init($pb{'proj'},undef,"pbinit");
[384]23my ($scheme,$uri) = pb_cms_init(undef);
24
25pb_cms_export($uri,"$ENV{'PBDIR'}/mondo-doc/mindi.8",".");
26# should call filter_file here
27
[554]28my $ptr = pb_get_filters($pb{'pkg'});
29pb_filter_file_inplace($ptr,"mindi.8",\%pb);
Note: See TracBrowser for help on using the repository browser.