Changeset 749 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/Base.pm


Ignore:
Timestamp:
Mar 30, 2009, 2:31:42 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • pb_get_arch placed lower in the modules tree and used everywhere uname was used
  • Adds the possibility to replace the post-install script for rinse to allow for a perl script replacement which is common between distributions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/Base.pm

    r681 r749  
    3737
    3838our @ISA = qw(Exporter);
    39 our @EXPORT = qw(pb_mkdir_p pb_system pb_rm_rf pb_get_date pb_log pb_log_init pb_get_uri pb_get_content pb_set_content pb_display_file pb_syntax_init pb_syntax pb_temp_init $pbdebug $pbLOG $pbdisplaytype $pblocale);
     39our @EXPORT = qw(pb_mkdir_p pb_system pb_rm_rf pb_get_date pb_log pb_log_init pb_get_uri pb_get_content pb_set_content pb_display_file pb_syntax_init pb_syntax pb_temp_init pb_get_arch $pbdebug $pbLOG $pbdisplaytype $pblocale);
    4040
    4141=pod
     
    371371}
    372372
     373=item B<pb_get_arch>
     374
     375This function returns the architecture of our local environment and
     376standardize on i386 for those platforms. It also solves issues where a i386 VE on x86_64 returns x86_64 wrongly
     377
     378=cut
     379
     380sub pb_get_arch {
     381
     382my $arch = `uname -m`;
     383chomp($arch);
     384$arch =~ s/i.86/i386/;
     385
     386return($arch);
     387}
     388
    373389=back
    374390
Note: See TracChangeset for help on using the changeset viewer.