Subversion Repositories DevTools

Rev

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

Rev 417 Rev 427
Line 108... Line 108...
108
    #                Release Manager does not allow '.'
108
    #                Release Manager does not allow '.'
109
    #       Version: alphanumerics and the characters . + - : (full stop, plus, hyphen, colon) and should start with a digit
109
    #       Version: alphanumerics and the characters . + - : (full stop, plus, hyphen, colon) and should start with a digit
110
    #
110
    #
111
    #   Allow ( and cleanup )
111
    #   Allow ( and cleanup )
112
    #       ERGxxxxx    -> erg-xxx
112
    #       ERGxxxxx    -> erg-xxx
-
 
113
    #       VIXxxxxx    -> vix-xxx
-
 
114
    #       Whitespace   -> -
113
    #       _           -> -
115
    #       _           -> -
-
 
116
    #       Remove multiple '-' characters
-
 
117
    #       Lowercase all text
114
    #
118
    #
115
    my $cvt = 0;
119
    my $cvt = 0;
116
    $cvt = 1 if ( $build_name =~ s/^ERG/erg-/ );
120
    $cvt = 1 if ( $build_name =~ s/^ERG/erg-/ );
-
 
121
    $cvt = 1 if ( $build_name =~ s/^VIX/vix-/ );
-
 
122
    $cvt = 1 if ( $build_name =~ s~\s~-~g );
117
    $cvt = 1 if ( $build_name =~ s~_~-~g );
123
    $cvt = 1 if ( $build_name =~ s~_~-~g );
118
    $cvt = 1 if ( $build_name =~ tr/-//s );
124
    $cvt = 1 if ( $build_name =~ tr/-//s );
-
 
125
    if ( $build_name =~ m/[A-Z]/ )
-
 
126
    {
-
 
127
        $cvt = 1;
-
 
128
        $build_name = lc $build_name;
-
 
129
    }
119
 
130
 
120
    Warning ("Package Name converted to debian friendly form: $build_name")
131
    Warning ("Package Name converted to debian friendly form: $build_name")
121
        if ( $cvt );
132
        if ( $cvt );
122
 
133
 
123
    unless ( $build_name =~ m/^[a-z][-+a-z0-9]+$/ )
134
    unless ( $build_name =~ m/^[a-z][-+a-z0-9]+$/ )
Line 184... Line 195...
184
                        '--Var(LocalIncDir)',                     # Installed Artifacts
195
                        '--Var(LocalIncDir)',                     # Installed Artifacts
185
                        '--Var(LocalLibDir)',
196
                        '--Var(LocalLibDir)',
186
                        '--Var(LocalBinDir)',
197
                        '--Var(LocalBinDir)',
187
 
198
 
188
                        "-Name=$build_name",                      # Base Package Name
199
                        "-Name=$build_name",                      # Base Package Name
-
 
200
                        "-Variant=$build_variant",                # Variant Name
189
                        "-Output=--GeneratedProg($DebianPkgName)",# Specify output file
201
                        "-Output=--GeneratedProg($DebianPkgName)",# Specify output file
190
                        );
202
                        );
191
 
203
 
192
    #
204
    #
193
    #   The Packager has created a binary in the 'PROG' directory
205
    #   The Packager has created a binary in the 'PROG' directory