Subversion Repositories DevTools

Rev

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

Rev 6276 Rev 6281
Line 335... Line 335...
335
        $SRC_ROOT = '';
335
        $SRC_ROOT = '';
336
        $DPKG_NAME = 'pkg';
336
        $DPKG_NAME = 'pkg';
337
        $DESCPKG_FILE = 'descpkg';
337
        $DESCPKG_FILE = 'descpkg';
338
        $PKG_BASE =$CWD_DIR;
338
        $PKG_BASE =$CWD_DIR;
339
 
339
 
-
 
340
        #
-
 
341
        #   Use provided name and version
-
 
342
        #   Comparatbility only with ANT build system. Not needed by JATS
-
 
343
        #
-
 
344
        if ($opt_pname && $opt_pversion) {
-
 
345
            $DPKG_NAME = $opt_pname;
-
 
346
            $DPKG_VERSION = $opt_pversion;
-
 
347
        }
-
 
348
 
340
        return;
349
        return;
341
    }
350
    }
342
 
351
 
343
    #
352
    #
344
    #   Check for a "pkg" directory
353
    #   Check for a "pkg" directory
Line 405... Line 414...
405
#
414
#
406
# Returns         : Will not return on error
415
# Returns         : Will not return on error
407
#
416
#
408
sub CheckDescPkg
417
sub CheckDescPkg
409
{
418
{
-
 
419
    #
-
 
420
    #   May not need a package description if performing a no-build
-
 
421
    #       The package name and version will may be provided on the command line
-
 
422
    #   Compatability for ANT builds
-
 
423
    #       
-
 
424
    #
-
 
425
    if ($opt_noBuild) {
-
 
426
        if ($opt_pname && $opt_pversion) {
-
 
427
            return;
-
 
428
        }
-
 
429
        Error("NoBuild operation requires package name and version")
-
 
430
    }
-
 
431
 
410
 
432
 
411
    # Get the dpkg_archive version number we are  going to create.
433
    # Get the dpkg_archive version number we are  going to create.
412
    #
434
    #
413
    Error("Descpkg file not found in package directory: $PKG_BASE")
435
    Error("Descpkg file not found in package directory: $PKG_BASE")
414
        unless ( -f "$DESCPKG_FILE" );
436
        unless ( -f "$DESCPKG_FILE" );