Subversion Repositories DevTools

Rev

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

Rev 415 Rev 417
Line 107... Line 107...
107
my $opt_pkgdir;
107
my $opt_pkgdir;
108
my $opt_pkglibdir;
108
my $opt_pkglibdir;
109
my $opt_pkgbindir;
109
my $opt_pkgbindir;
110
my $opt_pkgpkgdir;
110
my $opt_pkgpkgdir;
111
my $opt_output;
111
my $opt_output;
-
 
112
my $opt_name;
112
 
113
 
113
#
114
#
114
#   Options derived from script directives
115
#   Options derived from script directives
115
#
116
#
116
my $opt_control = '';
117
my $opt_control = '';
Line 165... Line 166...
165
                "PackageDir=s"      => \$opt_pkgdir,
166
                "PackageDir=s"      => \$opt_pkgdir,
166
                "PackageLibDir=s"   => \$opt_pkglibdir,
167
                "PackageLibDir=s"   => \$opt_pkglibdir,
167
                "PackageBinDir=s"   => \$opt_pkgbindir,
168
                "PackageBinDir=s"   => \$opt_pkgbindir,
168
                "PackagePkgDir=s"   => \$opt_pkgpkgdir,
169
                "PackagePkgDir=s"   => \$opt_pkgpkgdir,
169
                "Output=s"          => \$opt_output,
170
                "Output=s"          => \$opt_output,
-
 
171
                "Name=s"            => \$opt_name,
170
    );
172
    );
171
 
173
 
172
    $opt_verbose++ unless ( $opt_vargs eq '@' );
174
    $opt_verbose++ unless ( $opt_vargs eq '@' );
173
 
175
 
174
    ErrorConfig( 'name'    => 'DebianUtils',
176
    ErrorConfig( 'name'    => 'DebianUtils',
Line 190... Line 192...
190
    Error ("InterfaceDir not set")              unless ( $opt_interfacedir );
192
    Error ("InterfaceDir not set")              unless ( $opt_interfacedir );
191
    Error ("Target not set")                    unless ( $opt_target );
193
    Error ("Target not set")                    unless ( $opt_target );
192
    Error ("Product not set")                   unless ( $opt_product );
194
    Error ("Product not set")                   unless ( $opt_product );
193
    Error ("DebianPackage not set")             unless ( $opt_package_script );
195
    Error ("DebianPackage not set")             unless ( $opt_package_script );
194
    Error ("Ouput File not set")                unless ( $opt_output );
196
    Error ("Ouput File not set")                unless ( $opt_output );
-
 
197
    Error ("Build Name not set")                unless ( $opt_name );
195
 
198
 
196
    #
199
    #
197
    #   Clean up the build name
200
    #   Clean up the build name
198
    #   Match any work done in the MakeDebianPackage directive
201
    #   Match any work done in the MakeDebianPackage directive
199
    #
202
    #
Line 205... Line 208...
205
    ReadBuildConfig ($opt_interfacedir, $opt_platform, '--NoTest' );
208
    ReadBuildConfig ($opt_interfacedir, $opt_platform, '--NoTest' );
206
 
209
 
207
    #
210
    #
208
    #   Build the package image in a directory based on the target being created
211
    #   Build the package image in a directory based on the target being created
209
    #
212
    #
210
    $DebianWorkDir = "$opt_platform$opt_type.image";
213
    $DebianWorkDir = "$opt_platform$opt_type.image/$opt_name";
211
 
214
 
212
    #
215
    #
213
    #   Configure the System command to fail on any error
216
    #   Configure the System command to fail on any error
214
    #
217
    #
215
    SystemConfig ( ExitOnError => 1 );
218
    SystemConfig ( ExitOnError => 1 );
Line 222... Line 225...
222
 
225
 
223
    #
226
    #
224
    #   Display variables used
227
    #   Display variables used
225
    #
228
    #
226
    Message    "=Building Debian Package =============================================";
229
    Message    "=Building Debian Package =============================================";
227
    Message    "Build $opt_buildname";
230
    Message    "Build $opt_name";
228
    Message    "       Package: $opt_buildname";
231
    Message    "       Package: $opt_buildname";
229
    Message    "       Version: $opt_buildversion";
232
    Message    "       Version: $opt_buildversion";
230
    Message    "  Building for: $opt_platform, $opt_target";
233
    Message    "  Building for: $opt_platform, $opt_target";
231
    Message    "       Product: $opt_product";
234
    Message    "       Product: $opt_product";
232
    Message    "          Type: $opt_type";
235
    Message    "          Type: $opt_type";