Changeset 1495 in ProjectBuilder for devel/pb/bin


Ignore:
Timestamp:
May 7, 2012, 4:44:13 AM (12 years ago)
Author:
Bruno Cornec
Message:

r4735@localhost: bruno | 2012-05-07 03:46:39 +0200

  • Conf.pm largely rewritten to cache all conf files into a local $h hash in which conf files are added in reverse order.

The new pb_conf_hash stores a configuration file into a hash structure passed in parameter.
pb_conf_add now triggers the computation of the hash structure with pb_conf_cache and adds it to the main $h hash.
pb_conf_read_if now just uses the content in the $h hash to return its table.
pb_conf_get_in_hash_if function added to do the same as pb_conf_read_if on the cached $h hash instead of a configuration file.
pb_conf_get_if now uses pb_conf_get_in_hash_if and the $h hash without re-reading conf files
pb_conf_add_last_in_hash adds the content of a hash behind the content of the $h main hash (was done in pb_conf_get before)
pb_env_init now calls pb_conf_init to have PBPROJ defined when needed.
pb seems to work with this new version (builds itself)

  • Add a new getconf option to pb in order to see the state of the current configuration parameters (now in memory)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1486 r1495  
    383383
    384384Create tar files for the website under your CMS.
     385
     386=item B<getconf>
     387
     388Print the full configuration parameters as found in the various configuration files. help to debug conf issues.
    385389
    386390=item B<clean>
     
    713717} elsif ($action =~ /^newproj$/) {
    714718    # Nothing to do - already done in pb_env_init
     719} elsif ($action =~ /^getconf$/) {
     720    my $pbos = pb_distro_get_context();
     721    pb_conf_print();
    715722} elsif ($action =~ /^clean$/) {
    716723    pb_clean();
Note: See TracChangeset for help on using the changeset viewer.