Subversion Repositories DevTools

Rev

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

Rev 7005 Rev 7199
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
-
 
95
#                                                 Will only modify the content of the manifest file
94
#                                                 
96
#                                                 
95
# Notes: On sig file generation
97
# Notes: On sig file generation
96
#   This tool will use an internal key file to generate signatures
98
#   This tool will use an internal key file to generate signatures
97
#   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
98
#   the generated signatures will not work on-target.
100
#   the generated signatures will not work on-target.
Line 235... Line 237...
235
           $ManifestFiles::noSigs = !! $1;
237
           $ManifestFiles::noSigs = !! $1;
236
 
238
 
237
        } elsif (m/^--(No)?Warn/i) {
239
        } elsif (m/^--(No)?Warn/i) {
238
           $ManifestFiles::noWarn = !! $1;
240
           $ManifestFiles::noWarn = !! $1;
239
 
241
 
-
 
242
        } elsif (m/^--UseFullVerion/i) {
-
 
243
            $ManifestFiles::useFullVersion = 1;
-
 
244
 
240
        } else {
245
        } else {
241
            ReportError ("ManifestFiles: Unknown option or argument: $_");
246
            ReportError ("ManifestFiles: Unknown option or argument: $_");
242
 
247
 
243
        }
248
        }
244
    }
249
    }
Line 317... Line 322...
317
our $ManifestLineWidth;             # Max length of lines
322
our $ManifestLineWidth;             # Max length of lines
318
   
323
   
319
our %package_dirs;                  # Package dirs discovered and used
324
our %package_dirs;                  # Package dirs discovered and used
320
our $ManifestFiles;                 # Files in the Manifest
325
our $ManifestFiles;                 # Files in the Manifest
321
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
322
our $pkgBase;                       # Where the package is being sourced from
328
our $pkgBase;                       # Where the package is being sourced from
323
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)
324
our $templateMode;                  # In templating mode
330
our $templateMode;                  # In templating mode
325
our $localInstall;                  # Install or Package the manifest
331
our $localInstall;                  # Install or Package the manifest
326
 
332
 
Line 1091... Line 1097...
1091
 
1097
 
1092
    Verbose ("Generate: File: $manifestName");
1098
    Verbose ("Generate: File: $manifestName");
1093
 
1099
 
1094
    open (MF, '>', $manifestName ) || Error ("Cannot create the Manifest file: $manifestName");
1100
    open (MF, '>', $manifestName ) || Error ("Cannot create the Manifest file: $manifestName");
1095
    binmode (MF);
1101
    binmode (MF);
-
 
1102
    my $version;
-
 
1103
    if ($useFullVersion == 1) {
-
 
1104
        $version = $::ScmBuildVersionFull;
-
 
1105
    } else {
-
 
1106
        $version = $::ScmBuildVersion;
-
 
1107
    }
1096
 
1108
    
1097
    if ($Manifests[0]->{is_sub_manifest} == 1) {
1109
    if ($Manifests[0]->{is_sub_manifest} == 1) {
1098
        print_mf ("# Package $::ScmBuildPackage $::ScmBuildVersion built: $::CurrentTime");
1110
        print_mf ("# Package $::ScmBuildPackage $version built: $::CurrentTime");
1099
    } else {
1111
    } else {
1100
        print_mf ("# PackageName: $::ScmBuildPackage");
1112
        print_mf ("# PackageName: $::ScmBuildPackage");
1101
        print_mf ("# PackageVersion: $::ScmBuildVersion");
1113
        print_mf ("# PackageVersion: $version");
1102
        print_mf ("# BuildDate: $::CurrentTime");
1114
        print_mf ("# BuildDate: $::CurrentTime");
1103
        print_mf ("#");
1115
        print_mf ("#");
1104
        print_mf ("[Version],$::ScmBuildVersion");
1116
        print_mf ("[Version],$version");
1105
        print_mf ("#");
1117
        print_mf ("#");
1106
    }
1118
    }
1107
 
1119
 
1108
    #
1120
    #
1109
    #   Insert the certificate used to verify the files
1121
    #   Insert the certificate used to verify the files