Changeset 2284 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Sep 4, 2017, 1:21:15 PM (7 years ago)
Author:
Bruno Cornec
Message:

Now uses pbprojurl instead of pburl to be consistent with pbconfurl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2279 r2284  
    503503 # Url of the project
    504504 #
    505   pburl:
     505  pbprojurl:
    506506    linuxcoe : cvs+ssh://:ext:bcornec@linuxcoe.cvs.sourceforge.net:/cvsroot/linuxcoe
    507507 
     
    538538    mondorescue: $ENV{'HOME'}/mondo/svn/pbconf
    539539 
    540  # pbdir points to the directory where the CMS content of the pburl is checked out
     540 # pbdir points to the directory where the CMS content of the pbprojurl is checked out
    541541 # If not defined, pbdir is under pbdefdir/pbproj
    542542 # Only defined if we have access to the dev of the project
     
    575575=item Update your $project.yml configuration file.
    576576
    577 You need to set the pburl, pbrepo, pbwf, pbpackager, projver, projtag, testver, delivery, and defpkgdir lines as described in the configuration file. The pburl entry is used to find the source for your package. The pbrepo entry is used to build the .repo or .sources.list files for use by downloaders of the package. The pbwf entry indicates that the source tar file is named by I<package-name>-I<version>. The pbpackager entry will be stored in the packages and should be you or your team. The projver/projtag entries indicate the version of the software and the version of the packaging scripts. The testver entry when true indicates that the package is in a test version, so no log file is computed (can be long), and version is made up using a timstamp. The delivery entry gives the subdirectory under which the packages will be delivered on the repository, and the defpkgdir entry corresponds to the local subdirectory hosting the package content.
     577You need to set the pbprojurl, pbrepo, pbwf, pbpackager, projver, projtag, testver, delivery, and defpkgdir lines as described in the configuration file. The pbprojurl entry is used to find the source for your package. The pbrepo entry is used to build the .repo or .sources.list files for use by downloaders of the package. The pbwf entry indicates that the source tar file is named by I<package-name>-I<version>. The pbpackager entry will be stored in the packages and should be you or your team. The projver/projtag entries indicate the version of the software and the version of the packaging scripts. The testver entry when true indicates that the package is in a test version, so no log file is computed (can be long), and version is made up using a timstamp. The delivery entry gives the subdirectory under which the packages will be delivered on the repository, and the defpkgdir entry corresponds to the local subdirectory hosting the package content.
    578578
    579579For example:
    580580
    581  pburl Lintel = file:///home/anderse/projects/Lintel-0.2012.02.28.tar.gz
     581 pbprojurl Lintel = file:///home/anderse/projects/Lintel-0.2012.02.28.tar.gz
    582582 pbrepo Lintel = http://tesla.hpl.hp.com/opensource
    583583 pbwf Lintel = 1
     
    35423542    my ($scheme2,$uri) = pb_cms_init($pbinit);
    35433543
    3544     my ($pbconf,$pburl) = pb_conf_get("pbconfurl","pburl");
     3544    my ($pbconf,$pbprojurl) = pb_conf_get("pbconfurl","pbprojurl");
    35453545    $uri = $pbconf->{$ENV{'PBPROJ'}};
    35463546    my ($scheme, $account, $host, $port, $path) = pb_get_uri($uri);
    35473547
    35483548    # Checking CMS repositories status
    3549     ($scheme2, $account, $host, $port, $path) = pb_get_uri($pburl->{$ENV{'PBPROJ'}});
     3549    ($scheme2, $account, $host, $port, $path) = pb_get_uri($pbprojurl->{$ENV{'PBPROJ'}});
    35503550
    35513551    if ($scheme !~ /^svn/) {
     
    35793579
    35803580    # Duplicate and extract project
    3581     my $newurl2 = "$pburl->{$ENV{'PBPROJ'}}/$newver";
    3582 
    3583     pb_log(2,"Copying $pburl->{$ENV{'PBPROJ'}}/$oldver to $newurl2\n");
    3584     pb_vcs_copy($scheme2,"$pburl->{$ENV{'PBPROJ'}}/$oldver",$newurl2);
     3581    my $newurl2 = "$pbprojurl->{$ENV{'PBPROJ'}}/$newver";
     3582
     3583    pb_log(2,"Copying $pbprojurl->{$ENV{'PBPROJ'}}/$oldver to $newurl2\n");
     3584    pb_vcs_copy($scheme2,"$pbprojurl->{$ENV{'PBPROJ'}}/$oldver",$newurl2);
    35853585
    35863586    my $tmp = $ENV{'PBDIR'};
Note: See TracChangeset for help on using the changeset viewer.