Raymond Toy pushed to branch issue-386-generate-def-unix-error at cmucl / cmucl
Commits:
-
e0143bf2
by Raymond Toy at 2025-03-28T10:12:46-07:00
2 changed files:
Changes:
... | ... | @@ -157,8 +157,9 @@ buildit () |
157 | 157 | fi
|
158 | 158 | }
|
159 | 159 | |
160 | -# Create the errno file containing all the def-unix-error forms.
|
|
161 | -bin/create-errno.sh
|
|
160 | +# Create the errno file containing all the def-unix-error forms. Exit
|
|
161 | +# if there's an error in creating the errno file.
|
|
162 | +bin/create-errno.sh || exit 1
|
|
162 | 163 | |
163 | 164 | BUILDWORLD="$TOOLDIR/build-world.sh"
|
164 | 165 | BUILD_POT="yes"
|
... | ... | @@ -82,7 +82,10 @@ if [ -z "$DEFAULT" -a -n "$ERRNO_FILE" ]; then |
82 | 82 | # First check that the errno definitions haven't changed. If they
|
83 | 83 | # have, exit with an error.
|
84 | 84 | |
85 | - (find_errno | diff -u "$ERRNO_FILE" - ) || exit 1
|
|
85 | + if ! (find_errno | diff -u "$ERRNO_FILE" -) ; then
|
|
86 | + echo "Error: Current $ERRNO_FILE differs from header file definitions"
|
|
87 | + exit 1
|
|
88 | + fi
|
|
86 | 89 | fi
|
87 | 90 | |
88 | 91 | # Create the src/code/errno.lisp file from the template and the
|