Changeset 1156 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Jan 13, 2011, 1:18:37 PM (14 years ago)
- Location:
- devel/pb-modules
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/bin/pbdistrocheck
r1111 r1156 144 144 $pbsuf = "Suffix:\t$pbsuf"; 145 145 $pbupd = "Update:\t$pbupd"; 146 $pbins = "Install:\t$pb upd";146 $pbins = "Install:\t$pbins"; 147 147 $arch = "Arch:\t$arch"; 148 148 print "Project-Builder tuple:\n"; -
devel/pb-modules/etc/pb.conf
r1155 r1156 33 33 osrelfile mandriva = /etc/mandriva-release 34 34 35 # Ma ndrake = 10.1,10.236 osrelfile ma ndrake = /etc/mandrakelinux-release35 # Mageia TBC 36 osrelfile mageia = /etc/mageia-release 37 37 38 38 # Fedora >= 4 … … 83 83 # Here are the ambiguous file association 84 84 # E.g. the file /etc/redhat-release is found on multiple distro such as redhat, rhel, centos, mandrake, vmware 85 # 86 87 # Mandrake <= 10.1 88 osrelambfile mandrake = /etc/mandrake-release 85 # These files should no be links 86 # 87 88 # Mandrake >= 10.1 89 osrelambfile mandrake = /etc/mandrakelinux-release 89 90 90 91 # Debian >= 3.1 … … 117 118 osrelexpr slackware = S[^ ]* (.+)$ 118 119 osrelexpr mandriva = Mandr[^ ]* [^ ]* release (.+) \( 119 osrelexpr mandrake = Mandr akelinuxrelease (.+) \(120 osrelexpr mandrake = Mandr[^ ]* release (.+) \( 120 121 osrelexpr fedora = Fedora .*release (\d+) \( 121 122 osrelexpr vmware = VMware ESX Server (\d+) \( … … 394 395 osperldep mandrake-10.1 = Date-Manip 395 396 ospkgdep mandrake-10.1 = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,diffutils 397 ospkgdep mandrake-10.2 = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,diffutils,perl-DateManip 396 398 osperldep md = 397 399 ospkgdep md = rpm-build,wget,patch,make,ntp-client,perl-File-MimeInfo,perl-File-BaseDir,perl-Date-Manip,diffutils -
devel/pb-modules/lib/ProjectBuilder/Base.pm
r1148 r1156 25 25 # Inherit from the "Exporter" module which handles exporting functions. 26 26 27 use vars qw($VERSION @ISA @EXPORT);27 use vars qw($VERSION $REVISION @ISA @EXPORT); 28 28 use Exporter; 29 29 … … 40 40 our @ISA = qw(Exporter); 41 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); 42 $VERSION = "$ProjectBuilder::Version::VERSION";42 ($VERSION,$REVISION) = pb_version_init(); 43 43 44 44 =pod -
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r1148 r1156 17 17 # Inherit from the "Exporter" module which handles exporting functions. 18 18 19 use vars qw($VERSION @ISA @EXPORT);19 use vars qw($VERSION $REVISION @ISA @EXPORT); 20 20 use Exporter; 21 21 … … 25 25 our @ISA = qw(Exporter); 26 26 our @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";27 ($VERSION,$REVISION) = pb_version_init(); 28 28 29 29 # Global hash of conf files -
devel/pb-modules/lib/ProjectBuilder/Display.pm
r1148 r1156 23 23 # Inherit from the "Exporter" module which handles exporting functions. 24 24 25 use vars qw($VERSION @ISA @EXPORT);25 use vars qw($VERSION $REVISION @ISA @EXPORT); 26 26 use Exporter; 27 27 … … 35 35 our @ISA = qw(Exporter); 36 36 our @EXPORT = qw(pb_display pb_display_init $pbdisplaytype $pblocale); 37 $VERSION = "$ProjectBuilder::Version::VERSION";37 ($VERSION,$REVISION) = pb_version_init(); 38 38 39 39 =pod -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r1148 r1156 19 19 # Inherit from the "Exporter" module which handles exporting functions. 20 20 21 use vars qw($VERSION @ISA @EXPORT);21 use vars qw($VERSION $REVISION @ISA @EXPORT); 22 22 use Exporter; 23 23 … … 27 27 our @ISA = qw(Exporter); 28 28 our @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";29 ($VERSION,$REVISION) = pb_version_init(); 30 30 31 31 =pod … … 156 156 This function returns a list of 2 parameters indicating the distribution name and version of the underlying Linux distribution. The value of those 2 fields may be "unknown" in case the function was unable to recognize on which distribution it is running. 157 157 158 On my home machine it would currently report ("mandriva","20 09.0").158 On my home machine it would currently report ("mandriva","2010.2"). 159 159 160 160 =cut -
devel/pb-modules/lib/ProjectBuilder/Version.pm
r1148 r1156 11 11 # Inherit from the "Exporter" module which handles exporting functions. 12 12 13 use vars qw($VERSION @ISA @EXPORT);13 use vars qw($VERSION $REVISION @ISA @EXPORT); 14 14 use Exporter; 15 15 … … 19 19 our @EXPORT = qw(pb_version_init); 20 20 21 $VERSION = 'PBVER'; 21 $VERSION = "PBVER"; 22 $REVISION = "PBREV"; 22 23 23 24 sub pb_version_init { 24 25 25 my $projectbuilderver = "PBVER";26 my $projectbuilderrev = "PBREV";26 my $projectbuilderver = $VERSION; 27 my $projectbuilderrev = $REVISION; 27 28 28 29 return($projectbuilderver,$projectbuilderrev);
Note:
See TracChangeset
for help on using the changeset viewer.