Changeset 539 in ProjectBuilder for devel/pb/lib/ProjectBuilder/Env.pm


Ignore:
Timestamp:
Sep 15, 2008, 2:54:42 AM (16 years ago)
Author:
Bruno Cornec
Message:

First attempt to code support for real/virtual names for packages in order to support perl naming in both Debian and RPM distributions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Env.pm

    r505 r539  
    118118# Detect the root dir for hosting all the content generated with pb
    119119#
    120 # Tree will look like this:
    121 #
    122 #             maint pbdefdir                         PBDEFDIR            dev dir (optional)
    123 #                  |                                                        |
    124 #            ------------------------                                --------------------
    125 #            |                      |                                |                  |
    126 #         pbproj1                pbproj2             PBPROJ       pbproj1           pbproj2   PBPROJDIR
    127 #            |                                                       |
    128 #  ---------------------------------------------                ----------
    129 #  *      *        *       |        |          |                *        *
    130 # tag    dev    pbconf    ...     build     delivery PBCONFDIR dev      tag                 
    131 #  |               |                           |     PBDESTDIR           |
    132 #  ---          ------                        pbrc   PBBUILDDIR       -------
    133 #    |          |    |                                                |     |
    134 #   1.1        dev  tag                                              1.0   1.1                PBDIR
    135 #                    |
    136 #                 -------
    137 #                 |     |
    138 #                1.0   1.1                           PBROOTDIR
    139 #                       |
    140 #               ----------------------------------
    141 #               |          |           |         |
    142 #             pkg1      pbproj1.pb   pbfilter   pbcl
    143 #               |
    144 #        -----------------
    145 #        |      |        |
    146 #       rpm    deb    pbfilter
    147 #
    148 #
    149 # (*) By default, if no relocation in .pbrc, dev dir is taken in the maint pbdefdir (when appropriate)
    150 # Names under a pbproj and the corresponding pbconf should be similar
    151 #
     120=over 4
     121
     122 Tree will look like this:
     123
     124             maint pbdefdir                         PBDEFDIR            dev dir (optional)
     125                  |                                                        |
     126            ------------------------                                --------------------
     127            |                      |                                |                  |
     128         pbproj1                pbproj2             PBPROJ       pbproj1           pbproj2   PBPROJDIR
     129            |                                                       |
     130  ---------------------------------------------                ----------
     131  *      *        *       |        |          |                *        *
     132 tag    dev    pbconf    ...     build     delivery PBCONFDIR dev      tag                 
     133  |               |                           |     PBDESTDIR           |
     134  ---          ------                        pbrc   PBBUILDDIR       -------
     135    |          |    |                                                |     |
     136   1.1        dev  tag                                              1.0   1.1                PBDIR
     137                    |
     138                 -------
     139                 |     |
     140                1.0   1.1                           PBROOTDIR
     141                       |
     142               ----------------------------------
     143               |          |           |         |
     144             pkg1      pbproj1.pb   pbfilter   pbcl
     145               |
     146        -----------------
     147        |      |        |
     148       rpm    deb    pbfilter
     149
     150
     151 (*) By default, if no relocation in .pbrc, dev dir is taken in the maint pbdefdir (when appropriate)
     152 Names under a pbproj and the corresponding pbconf should be similar
     153
     154=cut
    152155
    153156my ($pbdefdir) = pb_conf_get_if("pbdefdir");
     
    217220
    218221#
    219 # The following part is only useful when in cms2something of newver
     222# The following part is only useful when in cms2something or newsomething
    220223# In VMs/VEs we want to skip that by providing good env vars.
    221224# return values in that case are useless
Note: See TracChangeset for help on using the changeset viewer.