Changeset 1148 in ProjectBuilder for devel/pb-modules


Ignore:
Timestamp:
Jan 11, 2011, 1:14:38 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Most modules now have a VERSION declared
  • Moulde Version.pm move to pb-modules due to that
Location:
devel/pb-modules/lib/ProjectBuilder
Files:
5 edited
1 moved

Legend:

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

    r1137 r1148  
    2121use English;
    2222use POSIX qw(locale_h);
     23use ProjectBuilder::Version;
    2324
    2425# Inherit from the "Exporter" module which handles exporting functions.
    2526 
     27use vars qw($VERSION @ISA @EXPORT);
    2628use Exporter;
    2729 
     
    3840our @ISA = qw(Exporter);
    3941our @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);
     42$VERSION = "$ProjectBuilder::Version::VERSION";
    4043
    4144=pod
  • devel/pb-modules/lib/ProjectBuilder/Conf.pm

    r1052 r1148  
    1313use Data::Dumper;
    1414use ProjectBuilder::Base;
     15use ProjectBuilder::Version;
    1516
    1617# Inherit from the "Exporter" module which handles exporting functions.
    1718 
     19use vars qw($VERSION @ISA @EXPORT);
    1820use Exporter;
    1921 
     
    2325our @ISA = qw(Exporter);
    2426our @EXPORT = qw(pb_conf_init pb_conf_add pb_conf_read pb_conf_read_if pb_conf_get pb_conf_get_if);
     27$VERSION = "$ProjectBuilder::Version::VERSION";
    2528
    2629# Global hash of conf files
  • devel/pb-modules/lib/ProjectBuilder/Display.pm

    r702 r1148  
    1919use POSIX qw(locale_h);
    2020use ProjectBuilder::Base;
     21use ProjectBuilder::Version;
    2122
    2223# Inherit from the "Exporter" module which handles exporting functions.
    2324 
     25use vars qw($VERSION @ISA @EXPORT);
    2426use Exporter;
    2527 
     
    3335our @ISA = qw(Exporter);
    3436our @EXPORT = qw(pb_display pb_display_init $pbdisplaytype $pblocale);
     37$VERSION = "$ProjectBuilder::Version::VERSION";
    3538
    3639=pod
  • devel/pb-modules/lib/ProjectBuilder/Distribution.pm

    r1137 r1148  
    1010use strict;
    1111use Data::Dumper;
     12use ProjectBuilder::Version;
    1213use ProjectBuilder::Base;
    1314use ProjectBuilder::Conf;
     
    1516use File::Copy;
    1617
     18# Global vars
    1719# Inherit from the "Exporter" module which handles exporting functions.
    1820 
     21use vars qw($VERSION @ISA @EXPORT);
    1922use Exporter;
    2023 
     
    2427our @ISA = qw(Exporter);
    2528our @EXPORT = qw(pb_distro_conffile pb_distro_init pb_distro_get pb_distro_getlsb pb_distro_installdeps pb_distro_getdeps pb_distro_only_deps_needed pb_distro_setuprepo pb_distro_setuposrepo pb_distro_get_param);
     29$VERSION = "$ProjectBuilder::Version::VERSION";
    2630
    2731=pod
  • devel/pb-modules/lib/ProjectBuilder/Log.pm

    r1109 r1148  
    55
    66use strict;
     7use ProjectBuilder::Version;
    78use ProjectBuilder::Base;
    89use ProjectBuilder::Log::Item;
  • devel/pb-modules/lib/ProjectBuilder/Version.pm

    r1146 r1148  
    1111# Inherit from the "Exporter" module which handles exporting functions.
    1212 
     13use vars qw($VERSION @ISA @EXPORT);
    1314use Exporter;
    1415 
     
    1718our @ISA = qw(Exporter);
    1819our @EXPORT = qw(pb_version_init);
     20
     21$VERSION = 'PBVER';
    1922
    2023sub pb_version_init {
Note: See TracChangeset for help on using the changeset viewer.