Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
-
1b987a64
by Raymond Toy at 2016-12-27T11:43:32-08:00
1 changed file:
Changes:
... | ... | @@ -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" ]
|