Raymond Toy pushed to branch issue-386-generate-def-unix-error at cmucl / cmucl

Commits:

2 changed files:

Changes:

  • bin/build.sh
    ... ... @@ -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"
    

  • bin/create-errno.sh
    ... ... @@ -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