Ignore:
Timestamp:
Oct 27, 2007, 8:31:17 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/pbconf/mondo/pbinit

    r1620 r1713  
    55
    66# Export documentation to generate what is needed
    7 use ProjectBuilder::Base qw (pb_cms_init pb_cms_export pb_mkdir_p);
     7use ProjectBuilder::Base qw (pb_cms_init pb_cms_export pb_mkdir_p pb_filter_file);
     8use File::Basename;
     9
    810
    911system("./bootstrap");
     12pb_mkdir_p("docs/entmp");
     13pb_mkdir_p("docs/mantmp");
    1014pb_mkdir_p("docs/en");
    1115pb_mkdir_p("docs/man");
     16my $pbpkg = "PBPKG";
     17my $pbver = "PBVER";
     18my $pbtag = "PBTAG";
     19my $pbrev = "PBREV";
    1220
    1321my $cms = pb_cms_init($ENV{'PBPROJ'},undef);
    1422
    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");
     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");
    1725pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/images","docs/en/images");
    1826pb_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");
     27pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorescue-howto.sgml","docs/entmp");
    2028pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/mondorescue-howto.dsl","docs/en");
    2129pb_cms_export($cms,undef,"$ENV{'PBROOT'}/mondo-doc/Makefile.howto","docs/en");
    2230# 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
     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 TracChangeset for help on using the changeset viewer.