Subversion Repositories DevTools

Rev

Rev 343 | Rev 361 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 343 Rev 351
Line 66... Line 66...
66
my $opt_branch;                             # Create config spec with branch
66
my $opt_branch;                             # Create config spec with branch
67
my $opt_debug_build = 0;                    # Build Debug Only
67
my $opt_debug_build = 0;                    # Build Debug Only
68
my $opt_prod_build = 0;                     # Build ion Only
68
my $opt_prod_build = 0;                     # Build ion Only
69
my $opt_view_root = $ENV{'GBE_VIEWBASE'};   # Root of the view
69
my $opt_view_root = $ENV{'GBE_VIEWBASE'};   # Root of the view
70
my $opt_prefix = 1;                         # Prefix the view tag with user-name
70
my $opt_prefix = 1;                         # Prefix the view tag with user-name
-
 
71
my $opt_tag;                                # View tag insert (build or export or user)
71
my $bad_label_name = 0;                     # Badly formed label
72
my $bad_label_name = 0;                     # Badly formed label
72
 
73
 
73
#
74
#
74
#   Globals - Provided by the JATS environment
75
#   Globals - Provided by the JATS environment
75
#
76
#
Line 137... Line 138...
137
                "mkbranch=s"    => \$opt_branch,            # String
138
                "mkbranch=s"    => \$opt_branch,            # String
138
                "prodOnly"      => \$opt_prod_build,        # flag
139
                "prodOnly"      => \$opt_prod_build,        # flag
139
                "debugOnly"     => \$opt_debug_build,       # flag
140
                "debugOnly"     => \$opt_debug_build,       # flag
140
                "root=s"        => \$GBE_VIEWBASE,          # string
141
                "root=s"        => \$GBE_VIEWBASE,          # string
141
                "prefix!"       => \$opt_prefix,            # flag
142
                "prefix!"       => \$opt_prefix,            # flag
-
 
143
                "tag=s"         => \$opt_tag,               # string
142
                );
144
                );
143
 
145
 
144
                #
146
                #
145
                #   UPDATE THE DOCUMENTATION AT THE END OF THIS FILE !!!
147
                #   UPDATE THE DOCUMENTATION AT THE END OF THIS FILE !!!
146
                #
148
                #
Line 292... Line 294...
292
    #   into the workspace name
294
    #   into the workspace name
293
    #
295
    #
294
    $opt_viewname .= '_' . $opt_branch if ( $opt_branch );
296
    $opt_viewname .= '_' . $opt_branch if ( $opt_branch );
295
    
297
    
296
    #
298
    #
297
    #   Create a singe dir name
299
    #   Create a simple dir name
298
    #   Remove path sep characters and replace with _
300
    #       Remove path sep characters and replace with _
-
 
301
    #       Remove Peg marker (@) as this breaks svn
-
 
302
    #       Replace multiple _ with a single _
299
    #
303
    #
-
 
304
    $opt_viewname =~ s~[^\-.:0-9a-zA-Z_]~_~g;
300
    $opt_viewname =~ tr~\\/:~_~s;
305
    $opt_viewname =~ tr~_~_~s;
301
 
-
 
302
}
306
}
303
$opt_viewname =~ s~^$view_prefix~~ if (defined($opt_viewname) && $view_prefix && $opt_delete );
307
$opt_viewname =~ s~^$view_prefix~~ if (defined($opt_viewname) && $view_prefix && $opt_delete );
304
 
308
 
305
#
309
#
306
#   Create a clearcase view to be used for the view
310
#   Create a clearcase view to be used for the view
Line 421... Line 425...
421
#   view, primarily for determining metrics.
425
#   view, primarily for determining metrics.
422
#
426
#
423
#   Calculate where the dynmaic view will be
427
#   Calculate where the dynmaic view will be
424
#   This differ between UNIX/WINDOWS
428
#   This differ between UNIX/WINDOWS
425
#
429
#
426
if ( $opt_path && $GBE_ABT)
430
if ( $GBE_ABT)
427
{
431
{
428
    Message( "Create Build tagfile");
432
    Message( "Create Build tagfile");
429
    my $cpath = $VIEWDIR . $opt_path;
433
    my $cpath = $VIEWDIR . $opt_path;
430
    if ( -d $cpath )
434
    if ( -d $cpath )
431
    {
435
    {
Line 872... Line 876...
872
    -path=xxx          - Source Path
876
    -path=xxx          - Source Path
873
    -view=xxx          - Modify the name of the created view
877
    -view=xxx          - Modify the name of the created view
874
    -build=xxx         - Package Name to build
878
    -build=xxx         - Package Name to build
875
    -root=xxx          - Root directory for generated view
879
    -root=xxx          - Root directory for generated view
876
    -[mk]branch=xxx    - Will create a view with a branch rule
880
    -[mk]branch=xxx    - Will create a view with a branch rule
-
 
881
    -tag=xxx           - Compatability. Not used
877
    -extract           - Extract the view and exit
882
    -extract           - Extract the view and exit
878
    -extractfiles      - Extract files, without a view
883
    -extractfiles      - Extract files, without a view
879
    -cache             - Refresh local dpkg_archive cache
884
    -cache             - Refresh local dpkg_archive cache
880
    -delete            - Remove any existing view and exit
885
    -delete            - Remove any existing view and exit
881
    -debugOnly         - Make only the debug version
886
    -debugOnly         - Make only the debug version
Line 982... Line 987...
982
check for its existence.
987
check for its existence.
983
 
988
 
984
The tool will copy the specified source version to the branch and then create a
989
The tool will copy the specified source version to the branch and then create a
985
workspace based on the branch.
990
workspace based on the branch.
986
 
991
 
-
 
992
=item B<-tag=text>
-
 
993
 
-
 
994
This option is not used.
-
 
995
It is present to maintain compatability with the buildtool interface.
-
 
996
 
987
=item B<-extract>
997
=item B<-extract>
988
 
998
 
989
With this option the view is created and the left in place. The user may then
999
With this option the view is created and the left in place. The user may then
990
access the files within the view. The view should not be used for a
1000
access the files within the view. The view should not be used for a
991
production release.
1001
production release.