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