Changeset 1500 in ProjectBuilder for devel/lib/ProjectBuilder


Ignore:
Timestamp:
May 8, 2012, 4:12:21 AM (12 years ago)
Author:
Bruno Cornec
Message:

project-builder-r1426

Location:
devel/lib/ProjectBuilder
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • devel/lib/ProjectBuilder/Base.pm

    r1498 r1500  
    3939
    4040our @ISA = qw(Exporter);
    41 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 pb_get_arch pb_check_requirements pb_check_req $pbdebug $pbLOG $pbdisplaytype $pblocale);
     41our @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 pb_get_osrelease pb_check_requirements pb_check_req $pbdebug $pbLOG $pbdisplaytype $pblocale);
    4242($VERSION,$REVISION) = pb_version_init();
    4343
     
    5050=head1 DESCRIPTION
    5151
    52 This modules provides generic functions suitable for perl project development
     52This module provides generic functions suitable for perl project development
    5353
    5454=head1 SYNOPSIS
     
    384384}
    385385
     386=item B<pb_get_osrelease>
     387
     388This function returns the release of our operating system
     389
     390=cut
     391
     392sub pb_get_osrelease {
     393
     394# On linux can also use /proc/sys/kernel/osrelease
     395my $rel = `uname -r`;
     396chomp($rel);
     397return($rel);
     398}
     399
     400
    386401=item B<pb_get_arch>
    387402
     
    467482} else {
    468483    pb_log(2,"OK\n");
    469     return($found);
    470 }
     484}
     485return($found);
    471486}
    472487
  • devel/lib/ProjectBuilder/Distribution.pm

    r1498 r1500  
    560560
    561561This function gets the OS context passed as parameter and return the corresponding distribution hash
     562If passed undef or "" then auto-detects
    562563
    563564=cut
     
    569570my $pbos;
    570571
    571 if (defined $os) {
     572if ((defined $os) && ($os ne "")) {
    572573    my ($name,$ver,$darch) = split(/-/,$os);
    573574    pb_log(0,"Bad format for $os") if ((not defined $name) || (not defined $ver) || (not defined $darch)) ;
  • devel/lib/ProjectBuilder/Version.pm

    r1498 r1500  
    1919our @EXPORT = qw(pb_version_init);
    2020
    21 $VERSION = "0.11.3";
    22 $REVISION = "1307";
     21$VERSION = "PBVER";
     22$REVISION = "PBREV";
    2323
    2424sub pb_version_init {
Note: See TracChangeset for help on using the changeset viewer.