Changeset 53


Ignore:
Timestamp:
Aug 30, 2007, 1:57:00 PM (11 years ago)
Author:
bruno
Message:

Adds Version-Revision for pb in yntax

Location:
devel
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r50 r53  
    2020use POSIX qw(strftime);
    2121
    22 use vars qw (%defpkgdir %extpkgdir %version %confparam %filteredfiles %pbroot $debug $LOG);
     22use vars qw (%defpkgdir %extpkgdir %version %confparam %filteredfiles %pbroot $debug $LOG $projectbuilderver $projectbuilderrev);
    2323$debug = 0;                 # Debug level
    2424$LOG = *STDOUT;             # Where to log
    2525use lib qw (lib);
    2626use ProjectBuilder::common qw (env_init);
    27 use ProjectBuilder::pb qw (pb_init);
    2827use ProjectBuilder::distro qw (distro_init);
    2928use ProjectBuilder::cms;
    3029use ProjectBuilder::changelog qw (changelog);
     30use ProjectBuilder::Version qw (version_init);
    3131
    3232my %opts;                   # CLI Options
     
    3737my $pbtag;                  # Global TAG variable
    3838my $pbver;                  # Global VERSION variable
    39 my $pbrev;                  # GLOBAL REVISION variable
     39my $pbrev;                  # Global REVISION variable
    4040my @date=(localtime->sec(), localtime->min(), localtime->hour(), localtime->mday(), localtime->mon(), localtime->year(), localtime->wday(), localtime->yday(), localtime->isdst());
    4141my $pbdate = strftime("%Y-%m-%d", @date);
     
    4343getopts('hl:p:qtv',\%opts);
    4444
     45version_init();
    4546if (defined $opts{'h'}) {
    4647    syntax();
     
    6465    $ENV{'PBPROJ'} = env_init();
    6566}
     67
    6668# Handles test option
    6769if (defined $opts{'t'}) {
     
    402404sub syntax {
    403405
     406    print "pb (aka project-builder) Version $projectbuilderver-$projectbuilderrev\n";
     407    print "\n";
    404408    print "Syntax: pb [-vhqt][-p project] <action> [<params>...]\n";
    405409    print "\n";
  • devel/pbconf/pb.pb

    r38 r53  
    2828# Files are mentioned relatively to pbroot
    2929filteredfiles "pb/Makefile.PL"
     30filteredfiles "pb/lib/ProjectBuilder/Version.pm"
  • devel/pbconf/project-builder/rpm/pb.spec

    r52 r53  
    1616BuildArch:  noarch
    1717Requires:   perl >= 5.8.4, PBDEP
    18 Provides:   perl(ProjectBuilder::changelog), perl(ProjectBuilder::cms), perl(ProjectBuilder::common), perl(ProjectBuilder::distro), perl(ProjectBuilder::pb)
     18Provides:   perl(ProjectBuilder::changelog), perl(ProjectBuilder::cms), perl(ProjectBuilder::common), perl(ProjectBuilder::distro), perl(ProjectBuilder::pb), perl(ProjectBuilder::Version)
    1919
    2020%description
Note: See TracChangeset for help on using the changeset viewer.