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

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