source: MondoRescue/branches/2.2.5/pbconf/mondo/pbinit @ 1713

Last change on this file since 1713 was 1713, checked in by Bruno Cornec, 12 years ago
  • Improve Ubuntu/Debian? keyboard detection and support
  • pbinit adapted to new pb (0.8.10). Filtering of docs done in it
  • Suppress some mondo warnings and errors on USB again
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/usr/bin/perl -w
2#
3# Init script for mondo with Project-Builder
4#
5
6# Export documentation to generate what is needed
7use ProjectBuilder::Base qw (pb_cms_init pb_cms_export pb_mkdir_p pb_filter_file);
8use File::Basename;
9
10
11system("./bootstrap");
12pb_mkdir_p("docs/entmp");
13pb_mkdir_p("docs/mantmp");
14pb_mkdir_p("docs/en");
15pb_mkdir_p("docs/man");
16my $pbpkg = "PBPKG";
17my $pbver = "PBVER";
18my $pbtag = "PBTAG";
19my $pbrev = "PBREV";
20
21my $cms = pb_cms_init($ENV{'PBPROJ'},undef);
22
23pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondoarchive.8","docs/mantmp");
24pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorestore.8","docs/mantmp");
25pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/images","docs/en/images");
26pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/fdl.sgml","docs/en");
27pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorescue-howto.sgml","docs/entmp");
28pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorescue-howto.dsl","docs/en");
29pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/Makefile.howto","docs/en");
30# should call filter_file here
31
32my $ptr = pb_get_filters($pbpkg);
33foreach my $f (<docs/mantmp/*>) {
34    pb_filter_file("$f",$ptr,"docs/man/".basename($f),$pbpkg,$pbver,$pbtag,$pbrev,"","");
35}
36foreach my $f (<docs/entmp/*>) {
37    pb_filter_file("$f",$ptr,"docs/en/".basename($f),$pbpkg,$pbver,$pbtag,$pbrev,"","");
38}
39pb_rm_rf("docs/entmp");
40pb_rm_rf("docs/mantmp");
41
42system("cd docs/en ; make -f Makefile.howto mondorescue-howto.pdf mondorescue-howto.html");
Note: See TracBrowser for help on using the repository browser.