source: ProjectBuilder/projects/mondorescue/pbconf/branches/3.3/mindi/pbinit@ 2343

Last change on this file since 2343 was 2343, checked in by Bruno Cornec, 6 years ago

Adapt MondoRescue to pb 0.15 with yml conf files

  • Property svn:executable set to *
File size: 766 bytes
Line 
1#!/usr/bin/perl -w
2#
3# Init script for mondo with Project-Builder
4#
5use ProjectBuilder::VCS;
6use ProjectBuilder::Filter;
7use ProjectBuilder::Env;
8
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";
17$pb{'extdir'} = "PBEXTDIR";
18$pb{'realpkg'} = "PBREALPKG";
19
20# Export documentation to generate what is needed
21
22# Action needs to be pbinit
23my ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir) = pb_env_init($pb{'proj'},undef,"pbinit");
24my ($scheme,$uri) = pb_vcs_init(undef);
25
26pb_vcs_export($uri,"$ENV{'PBDIR'}/mondo-doc/mindi.8",".");
27# should call filter_file here
28
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.