Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • bin/make-dist.sh
    ... ... @@ -130,10 +130,15 @@ if [ $# -lt 1 ]; then
    130 130
         usage
    
    131 131
     fi
    
    132 132
     
    
    133
    -# Either VERSION or DEFAULT_VERSION must be non-empty
    
    134
    -if [ -z "$VERSION" -a -z "${DEFAULT_VERSION}" ]; then
    
    135
    -    echo "Version (-V) must be specified because default version cannot be determined."
    
    136
    -    usage
    
    133
    +if [ -z "$VERSION" ]; then
    
    134
    +    # If a default version exists, use it. Otherwise this is an
    
    135
    +    # error---at least one of these must not be empty.
    
    136
    +    if [ -z "${DEFAULT_VERSION}" ]; then
    
    137
    +	echo "Version (-V) must be specified because default version cannot be determined."
    
    138
    +	usage
    
    139
    +    else
    
    140
    +	VERSION=${DEFAULT_VERSION}
    
    141
    +    fi
    
    137 142
     fi
    
    138 143
     
    
    139 144
     if [ ! -d "$1" ]