Changeset 130 for trunk


Ignore:
Timestamp:
08/16/07 16:37:04 (17 years ago)
Author:
kdeugau
Message:

/trunk

Exit cleanly on most of the no-specfile conditions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r129 r130  
    3535#use re "debug";
    3636
     37die "No .spec file to work with!  Exiting.\n" if scalar(@ARGV) == 0;
     38
    3739# Program flow:
    3840# -> Parse/execute "system" config/macros (if any - should be rare)
     
    163165my $installscript = '[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT'."\n";
    164166my $cleanscript = '';
    165 
    166 die "Not enough arguments\n" if #$argv == 0;
    167167
    168168# Snag some environment data
     
    460460# Parse the .spec file.
    461461sub parse_spec {
     462  die "No .spec file specified!  Exiting.\n" if !$specfile;
    462463  open SPECFILE,"<$specfile" or die "specfile ($specfile) barfed: $!";
    463464
Note: See TracChangeset for help on using the changeset viewer.