Raymond Toy pushed to branch issue-446-use-cc-to-get-errno at cmucl / cmucl Commits: e38f6453 by Raymond Toy at 2025-10-14T16:10:29-07:00 Remove the unused envvar ERRNO_HEADERS - - - - - 36eeae4c by Raymond Toy at 2025-10-14T16:15:42-07:00 Fix shellcheck warning Fix SC2166: https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q... - - - - - 1 changed file: - bin/create-errno.sh Changes: ===================================== bin/create-errno.sh ===================================== @@ -56,17 +56,15 @@ ERRNO_FILE="bin/errno-default.lisp" # support code. TEMPLATE="bin/errno-template.lisp" -# Set ERRNO_HEADERS to the files where we can find errno definitions. +# Set ERRNO_FILE to an OS-specific name if possible. If not, use the +# default ERRNO_FILE value. if [ -z "$DEFAULT" ]; then case $(uname -s) in - Linux) ERRNO_HEADERS=/usr/include/asm-generic/errno*.h - ERRNO_FILE="bin/errno-linux.lisp" + Linux) ERRNO_FILE="bin/errno-linux.lisp" ;; - Darwin) ERRNO_HEADERS=/usr/include/sys/errno.h - ERRNO_FILE="bin/errno-darwin.lisp" + Darwin) ERRNO_FILE="bin/errno-darwin.lisp" ;; - SunOS) ERRNO_HEADERS=/usr/include/sys/errno.h - ERRNO_FILE="bin/errno-solaris.lisp" + SunOS) ERRNO_FILE="bin/errno-solaris.lisp" ;; *) # The default case where we use the defaults. But also disable updating. UPDATE="" @@ -94,7 +92,7 @@ if [ "$UPDATE" = "yes" ]; then exit 0 fi -if [ -z "$DEFAULT" -a -n "$ERRNO_FILE" ]; then +if [ -z "$DEFAULT" ] && [ -n "$ERRNO_FILE" ]; then # First check that the errno definitions haven't changed. If they # have, exit with an error. View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/compare/adbf0a51a861ae6826a8174... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/compare/adbf0a51a861ae6826a8174... You're receiving this email because of your account on gitlab.common-lisp.net.