
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 build.sh exits if create-errno.sh fails In create-errno.sh print an error message if the current file doesn't match the definitions from the header files. In build.sh, exit if create-errno.sh fails. - - - - - 2 changed files: - bin/build.sh - bin/create-errno.sh Changes: ===================================== bin/build.sh ===================================== @@ -157,8 +157,9 @@ buildit () fi } -# Create the errno file containing all the def-unix-error forms. -bin/create-errno.sh +# Create the errno file containing all the def-unix-error forms. Exit +# if there's an error in creating the errno file. +bin/create-errno.sh || exit 1 BUILDWORLD="$TOOLDIR/build-world.sh" BUILD_POT="yes" ===================================== bin/create-errno.sh ===================================== @@ -82,7 +82,10 @@ if [ -z "$DEFAULT" -a -n "$ERRNO_FILE" ]; then # First check that the errno definitions haven't changed. If they # have, exit with an error. - (find_errno | diff -u "$ERRNO_FILE" - ) || exit 1 + if ! (find_errno | diff -u "$ERRNO_FILE" -) ; then + echo "Error: Current $ERRNO_FILE differs from header file definitions" + exit 1 + fi fi # Create the src/code/errno.lisp file from the template and the View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/e0143bf229c9a2be3f4c5cfb... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/e0143bf229c9a2be3f4c5cfb... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)