Changeset 1713 in MondoRescue for branches/2.2.5/pbconf/mondo
- Timestamp:
- Oct 27, 2007, 8:31:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/pbconf/mondo/pbinit
r1620 r1713 5 5 6 6 # Export documentation to generate what is needed 7 use ProjectBuilder::Base qw (pb_cms_init pb_cms_export pb_mkdir_p); 7 use ProjectBuilder::Base qw (pb_cms_init pb_cms_export pb_mkdir_p pb_filter_file); 8 use File::Basename; 9 8 10 9 11 system("./bootstrap"); 12 pb_mkdir_p("docs/entmp"); 13 pb_mkdir_p("docs/mantmp"); 10 14 pb_mkdir_p("docs/en"); 11 15 pb_mkdir_p("docs/man"); 16 my $pbpkg = "PBPKG"; 17 my $pbver = "PBVER"; 18 my $pbtag = "PBTAG"; 19 my $pbrev = "PBREV"; 12 20 13 21 my $cms = pb_cms_init($ENV{'PBPROJ'},undef); 14 22 15 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondoarchive.8","docs/man ");16 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorestore.8","docs/man ");23 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondoarchive.8","docs/mantmp"); 24 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorestore.8","docs/mantmp"); 17 25 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/images","docs/en/images"); 18 26 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/fdl.sgml","docs/en"); 19 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorescue-howto.sgml","docs/en ");27 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorescue-howto.sgml","docs/entmp"); 20 28 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorescue-howto.dsl","docs/en"); 21 29 pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/Makefile.howto","docs/en"); 22 30 # should call filter_file here 23 system("cd docs/en ; ls -lR > /tmp/1 ; make -f Makefile.howto mondorescue-howto.pdf mondorescue-howto.html"); 31 32 my $ptr = pb_get_filters($pbpkg); 33 foreach my $f (<docs/mantmp/*>) { 34 pb_filter_file("$f",$ptr,"docs/man/".basename($f),$pbpkg,$pbver,$pbtag,$pbrev,"",""); 35 } 36 foreach my $f (<docs/entmp/*>) { 37 pb_filter_file("$f",$ptr,"docs/en/".basename($f),$pbpkg,$pbver,$pbtag,$pbrev,"",""); 38 } 39 pb_rm_rf("docs/entmp"); 40 pb_rm_rf("docs/mantmp"); 41 42 system("cd docs/en ; make -f Makefile.howto mondorescue-howto.pdf mondorescue-howto.html");
Note:
See TracChangeset
for help on using the changeset viewer.