Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
-
50f850e4
by Raymond Toy at 2016-12-27T10:57:52-08:00
1 changed file:
Changes:
... | ... | @@ -93,15 +93,17 @@ def_arch_os () { |
93 | 93 |
# Figure out the architecture and OS in case options aren't given
|
94 | 94 |
def_arch_os
|
95 | 95 |
|
96 |
-# Choose a version based on the git hash as the default version.
|
|
96 |
+# Choose a version based on the git hash as the default version. We
|
|
97 |
+# only compute a default if the git hash looks like a snapshot
|
|
98 |
+# ("snapshot-yyyy-mm") or a release number..
|
|
97 | 99 |
GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
|
98 | 100 |
|
99 | 101 |
if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
|
100 |
- VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
|
|
102 |
+ DEFAULT_VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
|
|
101 | 103 |
fi
|
102 | 104 |
|
103 | 105 |
if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then
|
104 |
- VERSION="${GIT_HASH}"
|
|
106 |
+ DEFAULT_VERSION="${GIT_HASH}"
|
|
105 | 107 |
fi
|
106 | 108 |
|
107 | 109 |
while getopts "G:O:I:M:bghSA:o:V:?" arg
|
... | ... | @@ -128,6 +130,12 @@ if [ $# -lt 1 ]; then |
128 | 130 |
usage
|
129 | 131 |
fi
|
130 | 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
|
|
137 |
+fi
|
|
138 |
+ |
|
131 | 139 |
if [ ! -d "$1" ]
|
132 | 140 |
then
|
133 | 141 |
echo "$1 isn't a directory"
|
... | ... | @@ -152,6 +160,7 @@ if [ -n "$INSTALL_DIR" ]; then |
152 | 160 |
VERSION="today"
|
153 | 161 |
fi
|
154 | 162 |
|
163 |
+echo cmucl-$VERSION-$ARCH-$OS
|
|
155 | 164 |
ROOT=`dirname $0`
|
156 | 165 |
|
157 | 166 |
# If no compression options given, default to bzip
|