Subversion Repositories DevTools

Rev

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

Rev 7196 Rev 7197
Line 89... Line 89...
89
#                       --Template=Package[,--Subdir=subdir,--File=name]
89
#                       --Template=Package[,--Subdir=subdir,--File=name]
90
#                                                 Use Specified template                                                                           
90
#                                                 Use Specified template                                                                           
91
#                       --NoWarn                - Supress warnings about unused packages
91
#                       --NoWarn                - Supress warnings about unused packages
92
#                                                 Will supress sanity test. Useful when generating multiple
92
#                                                 Will supress sanity test. Useful when generating multiple
93
#                                                 manifests.                          
93
#                                                 manifests.                          
94
#						--UseFullVersion		- Use the full version (with the project extention) when building the manifest file
94
#                       --UseFullVersion        - Use the full version (with the project extention) when building the manifest file
-
 
95
#                                                 Will only modify the content of the manifest file
95
#                                                 
96
#                                                 
96
# Notes: On sig file generation
97
# Notes: On sig file generation
97
#   This tool will use an internal key file to generate signatures
98
#   This tool will use an internal key file to generate signatures
98
#   UNLESS the tool is being run on a special build machine with a controlled signature file
99
#   UNLESS the tool is being run on a special build machine with a controlled signature file
99
#   the generated signatures will not work on-target.
100
#   the generated signatures will not work on-target.
Line 118... Line 119...
118
    my $include_md5 = 0;
119
    my $include_md5 = 0;
119
    my $generate_dmf = 0;
120
    my $generate_dmf = 0;
120
    my $dmf_version = $::ScmBuildVersionFull;
121
    my $dmf_version = $::ScmBuildVersionFull;
121
    my $useDefaultLineWidth = 1;
122
    my $useDefaultLineWidth = 1;
122
    my $is_sub_manifest = 0;
123
    my $is_sub_manifest = 0;
123
    my $useFullVersion = 0;
-
 
124
 
124
 
125
    #
125
    #
126
    #   Collect user options
126
    #   Collect user options
127
    #
127
    #
128
    foreach ( @elements )
128
    foreach ( @elements )
Line 238... Line 238...
238
 
238
 
239
        } elsif (m/^--(No)?Warn/i) {
239
        } elsif (m/^--(No)?Warn/i) {
240
           $ManifestFiles::noWarn = !! $1;
240
           $ManifestFiles::noWarn = !! $1;
241
 
241
 
242
        } elsif (m/^--UseFullVerion/i) {
242
        } elsif (m/^--UseFullVerion/i) {
243
            $useFullVersion = 1;
243
            $ManifestFiles::useFullVersion = 1;
244
 
244
 
245
        } else {
245
        } else {
246
            ReportError ("ManifestFiles: Unknown option or argument: $_");
246
            ReportError ("ManifestFiles: Unknown option or argument: $_");
247
 
247
 
248
        }
248
        }
Line 285... Line 285...
285
    $data{md5} = $include_md5;
285
    $data{md5} = $include_md5;
286
    $data{dmf} = $generate_dmf;
286
    $data{dmf} = $generate_dmf;
287
    $data{arch} = $default_arch;
287
    $data{arch} = $default_arch;
288
    $data{dmf_version} = $dmf_version;
288
    $data{dmf_version} = $dmf_version;
289
    $data{is_sub_manifest} = $is_sub_manifest;
289
    $data{is_sub_manifest} = $is_sub_manifest;
290
    $data{useFullVersion} = $useFullVersion;
-
 
291
 
290
 
292
#DebugDumpData("DirectiveData", \%data );
291
#DebugDumpData("DirectiveData", \%data );
293
 
292
 
294
    push @ManifestFiles::Manifests, \%data;
293
    push @ManifestFiles::Manifests, \%data;
295
}
294
}
Line 323... Line 322...
323
our $ManifestLineWidth;             # Max length of lines
322
our $ManifestLineWidth;             # Max length of lines
324
   
323
   
325
our %package_dirs;                  # Package dirs discovered and used
324
our %package_dirs;                  # Package dirs discovered and used
326
our $ManifestFiles;                 # Files in the Manifest
325
our $ManifestFiles;                 # Files in the Manifest
327
our $noWarn = 0;                    # Control unused package warnings
326
our $noWarn = 0;                    # Control unused package warnings
-
 
327
our $useFullVersion = 0;            # Use the full version to build the manifest contents
328
our $pkgBase;                       # Where the package is being sourced from
328
our $pkgBase;                       # Where the package is being sourced from
329
our $noSigs = 1;                    # Control signature generation (Force noSigs. could use use undef)
329
our $noSigs = 1;                    # Control signature generation (Force noSigs. could use use undef)
330
our $templateMode;                  # In templating mode
330
our $templateMode;                  # In templating mode
331
our $localInstall;                  # Install or Package the manifest
331
our $localInstall;                  # Install or Package the manifest
332
 
332
 
Line 1098... Line 1098...
1098
    Verbose ("Generate: File: $manifestName");
1098
    Verbose ("Generate: File: $manifestName");
1099
 
1099
 
1100
    open (MF, '>', $manifestName ) || Error ("Cannot create the Manifest file: $manifestName");
1100
    open (MF, '>', $manifestName ) || Error ("Cannot create the Manifest file: $manifestName");
1101
    binmode (MF);
1101
    binmode (MF);
1102
    my $version;
1102
    my $version;
1103
    if ($Manifests[0]->{useFullVersion} == 1) {
1103
    if ($useFullVersion != 0) {
1104
        $version = $::ScmBuildVersionFull;
1104
        $version = $::ScmBuildVersionFull;
1105
    } else {
1105
    } else {
1106
        $version = $::ScmBuildVersion;
1106
        $version = $::ScmBuildVersion;
1107
    }
1107
    }
1108
    
1108