Changeset 2255


Ignore:
Timestamp:
Aug 30, 2017, 5:07:35 PM (4 weeks ago)
Author:
bruno
Message:

Adds a new updateconf command to pb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2252 r2255  
    370370
    371371Snapshot a virtual environment for pb usage
     372
     373=item B<updateconf>
     374
     375Update the configuration files to the latest format
    372376
    373377=item B<updatevm>
     
    10851089} elsif ($action =~ /^newproj$/) {
    10861090    # Nothing to do - already done in pb_env_init
     1091} elsif ($action =~ /^updateconf$/) {
     1092    foreach my $f (@ARGV) {
     1093        my $fyml = $f;
     1094        $fyml =~ s/\.pbf/.yml/;
     1095        $fyml =~ s/\.pb/.yml/;
     1096        $fyml =~ s/\.pbrc/.pbrc.yml/;
     1097        pb_update_conf_v0($f,$fyml);
     1098    }
    10871099} elsif ($action =~ /^getconf$/) {
    10881100    my $pbos = pb_distro_get_context($ENV{'PBV'});
Note: See TracChangeset for help on using the changeset viewer.