Last change
on this file since 2537 was 1818, checked in by Bruno Cornec, 11 years ago |
- Add pbrealpkg filtering in pbinit for mindi as well
|
-
Property svn:executable
set to
*
|
File size:
791 bytes
|
Rev | Line | |
---|
[384] | 1 | #!/usr/bin/perl -w
|
---|
| 2 | #
|
---|
| 3 | # Init script for mondo with Project-Builder
|
---|
| 4 | #
|
---|
[418] | 5 | use ProjectBuilder::CMS;
|
---|
[1483] | 6 | use ProjectBuilder::VCS;
|
---|
[418] | 7 | use ProjectBuilder::Filter;
|
---|
| 8 | use ProjectBuilder::Env;
|
---|
[384] | 9 |
|
---|
[554] | 10 | my %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";
|
---|
[1818] | 19 | $pb{'realpkg'} = "PBREALPKG";
|
---|
[384] | 20 |
|
---|
| 21 | # Export documentation to generate what is needed
|
---|
| 22 |
|
---|
[418] | 23 | # Action needs to be pbinit
|
---|
[554] | 24 | my ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir) = pb_env_init($pb{'proj'},undef,"pbinit");
|
---|
[384] | 25 | my ($scheme,$uri) = pb_cms_init(undef);
|
---|
| 26 |
|
---|
[1483] | 27 | pb_vcs_export($uri,"$ENV{'PBDIR'}/mondo-doc/mindi.8",".");
|
---|
[384] | 28 | # should call filter_file here
|
---|
| 29 |
|
---|
[554] | 30 | my $ptr = pb_get_filters($pb{'pkg'});
|
---|
| 31 | pb_filter_file_inplace($ptr,"mindi.8",\%pb);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.