[Git][cmucl/cmucl][sparc64-dev] Use the default version if possible
Raymond Toy
rtoy at common-lisp.net
Tue Dec 27 19:43:44 UTC 2016
Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
1b987a64 by Raymond Toy at 2016-12-27T11:43:32-08:00
Use the default version if possible
If -V isn't given, try to use the default, if possible.
- - - - -
1 changed file:
- bin/make-dist.sh
Changes:
=====================================
bin/make-dist.sh
=====================================
--- a/bin/make-dist.sh
+++ b/bin/make-dist.sh
@@ -130,10 +130,15 @@ if [ $# -lt 1 ]; then
usage
fi
-# Either VERSION or DEFAULT_VERSION must be non-empty
-if [ -z "$VERSION" -a -z "${DEFAULT_VERSION}" ]; then
- echo "Version (-V) must be specified because default version cannot be determined."
- usage
+if [ -z "$VERSION" ]; then
+ # If a default version exists, use it. Otherwise this is an
+ # error---at least one of these must not be empty.
+ if [ -z "${DEFAULT_VERSION}" ]; then
+ echo "Version (-V) must be specified because default version cannot be determined."
+ usage
+ else
+ VERSION=${DEFAULT_VERSION}
+ fi
fi
if [ ! -d "$1" ]
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/1b987a649d4cbeae93a764a99815c5ccebe5b84d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cmucl-cvs/attachments/20161227/bb2bc387/attachment.html>
More information about the cmucl-cvs
mailing list