Last change
on this file since 2692 was 2607, checked in by Bruno Cornec, 4 years ago |
Fix YAML pb_Dump function, adds a test for embedded YAML, export PBCONFVER from Version and fix sles 10 sudoers
|
File size:
924 bytes
|
Rev | Line | |
---|
| 1 | #!/usr/bin/perl -w
|
---|
| 2 | #
|
---|
| 3 | # Declare versions that will be used in pb
|
---|
| 4 | # Those are filtered with pb mecanism
|
---|
| 5 | # and have been isolated here to avoid unrelated effects
|
---|
| 6 | #
|
---|
| 7 | # Copyright B. Cornec 2007-today
|
---|
| 8 | # Provided under the GPL v2
|
---|
| 9 | #
|
---|
| 10 | package ProjectBuilder::Version;
|
---|
| 11 |
|
---|
| 12 | use strict;
|
---|
| 13 |
|
---|
| 14 | # Inherit from the "Exporter" module which handles exporting functions.
|
---|
| 15 |
|
---|
| 16 | use vars qw($VERSION $REVISION $PBCONFVER @ISA @EXPORT);
|
---|
| 17 | use Exporter;
|
---|
| 18 |
|
---|
| 19 | # Export, by default, all the functions into the namespace of
|
---|
| 20 | # any code which uses this module.
|
---|
| 21 | our @ISA = qw(Exporter);
|
---|
| 22 | our @EXPORT = qw(pb_version_init $PBCONFVER);
|
---|
| 23 |
|
---|
| 24 | $VERSION = "PBVER"."PBEXTDIR";
|
---|
| 25 | $REVISION = "PBREV";
|
---|
| 26 | # We fix the format of the conf file for this version of pb
|
---|
| 27 | $PBCONFVER = 1;
|
---|
| 28 |
|
---|
| 29 | sub pb_version_init {
|
---|
| 30 |
|
---|
| 31 | my $projectbuilderver = $VERSION;
|
---|
| 32 | my $projectbuilderrev = $REVISION;
|
---|
| 33 | my $projectbuilderconfver = $PBCONFVER;
|
---|
| 34 |
|
---|
| 35 | return($projectbuilderver,$projectbuilderrev,$projectbuilderconfver);
|
---|
| 36 | }
|
---|
| 37 | 1;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.