source:
ProjectBuilder/projects/mondorescue/pbconf/tags/3.0.4.1/mindi/pbinit
Last change on this file was 1483, checked in by , 12 years ago | |
---|---|
|
|
File size: 761 bytes |
Line | |
---|---|
1 | #!/usr/bin/perl -w |
2 | # |
3 | # Init script for mondo with Project-Builder |
4 | # |
5 | use ProjectBuilder::CMS; |
6 | use ProjectBuilder::VCS; |
7 | use ProjectBuilder::Filter; |
8 | use ProjectBuilder::Env; |
9 | |
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"; |
18 | $pb{'extdir'} = "PBEXTDIR"; |
19 | |
20 | # Export documentation to generate what is needed |
21 | |
22 | # Action needs to be pbinit |
23 | my ($filteredfiles, $supfiles, $defpkgdir, $extpkgdir) = pb_env_init($pb{'proj'},undef,"pbinit"); |
24 | my ($scheme,$uri) = pb_cms_init(undef); |
25 | |
26 | pb_vcs_export($uri,"$ENV{'PBDIR'}/mondo-doc/mindi.8","."); |
27 | # should call filter_file here |
28 | |
29 | my $ptr = pb_get_filters($pb{'pkg'}); |
30 | pb_filter_file_inplace($ptr,"mindi.8",\%pb); |
Note:
See TracBrowser
for help on using the repository browser.