Changeset 1148


Ignore:
Timestamp:
Jan 11, 2011, 1:14:38 PM (9 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
Files:
9 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 {
  • devel/pb/lib/ProjectBuilder/CMS.pm

    r1134 r1148  
    1919use POSIX qw(strftime);
    2020use lib qw (lib);
     21use ProjectBuilder::Version;
    2122use ProjectBuilder::Base;
    2223use ProjectBuilder::Conf;
     
    2425# Inherit from the "Exporter" module which handles exporting functions.
    2526 
     27use vars qw($VERSION @ISA @EXPORT);
    2628use Exporter;
    2729 
     
    3133our @ISA = qw(Exporter);
    3234our @EXPORT = qw(pb_cms_init pb_cms_export pb_cms_get_uri pb_cms_copy pb_cms_checkout pb_cms_up pb_cms_checkin pb_cms_isdiff pb_cms_get_pkg pb_cms_get_real_pkg pb_cms_compliant pb_cms_log pb_cms_add);
     35$VERSION = "$ProjectBuilder::Version::VERSION";
    3336
    3437=pod
  • devel/pb/lib/ProjectBuilder/Changelog.pm

    r916 r1148  
    1717use POSIX qw(strftime);
    1818use lib qw (lib);
     19use ProjectBuilder::Version;
    1920use ProjectBuilder::Base;
    2021use ProjectBuilder::Conf;
     
    2223# Inherit from the "Exporter" module which handles exporting functions.
    2324 
     25use vars qw($VERSION @ISA @EXPORT);
    2426use Exporter;
    2527 
     
    2931our @ISA = qw(Exporter);
    3032our @EXPORT = qw(pb_changelog);
     33$VERSION = "$ProjectBuilder::Version::VERSION";
    3134
    3235=pod
  • devel/pb/lib/ProjectBuilder/Env.pm

    r1136 r1148  
    1919use POSIX qw(strftime);
    2020use lib qw (lib);
     21use ProjectBuilder::Version;
    2122use ProjectBuilder::Base;
    2223use ProjectBuilder::Conf;
     
    2526# Inherit from the "Exporter" module which handles exporting functions.
    2627 
     28use vars qw($VERSION @ISA @EXPORT);
    2729use Exporter;
    2830 
     
    3234our @ISA = qw(Exporter);
    3335our @EXPORT = qw(pb_env_init pb_env_init_pbrc);
     36$VERSION = "$ProjectBuilder::Version::VERSION";
    3437
    3538=pod
  • devel/pb/lib/ProjectBuilder/Filter.pm

    r1130 r1148  
    1818use File::Copy;
    1919use lib qw (lib);
     20use ProjectBuilder::Version;
    2021use ProjectBuilder::Base;
    2122use ProjectBuilder::Changelog;
     
    2324# Inherit from the "Exporter" module which handles exporting functions.
    2425 
     26use vars qw($VERSION @ISA @EXPORT);
    2527use Exporter;
    2628 
     
    3032our @ISA = qw(Exporter);
    3133our @EXPORT = qw(pb_get_filters pb_filter_file_pb pb_filter_file_inplace pb_filter_file);
     34$VERSION = "$ProjectBuilder::Version::VERSION";
    3235
    3336=pod
Note: See TracChangeset for help on using the changeset viewer.