Re-enabled use of AROS.Boot file due to lack of general enthusiasm for
[tangerine.git] / arch / all-linux / exec / mksigcore.sh
blob4e576f073a636d067effce171edf0382823fac3c
1 #!/bin/sh
3 if [ ! -f /usr/include/bits/sigcontext.h ] ; then
4 echo "Could not find bits/sigcontext.h"
5 exit 20
6 fi
8 type=`${CC} -D_SIGNAL_H -E /usr/include/bits/sigcontext.h | grep "^struct sigcontext" | sed 's/{//'`
10 handler=__sighandler_t
11 if [ ${CPU} = "m68k" ]; then
12 sed "s/@sigcontext@/$type/" ${1-.}/../m68k/sigcore.h.src > ${2}
13 else
14 sed "s/@sigcontext@/$type/;s/@sighandler@/$handler/" ${1-.}/../${CPU}/sigcore.h.src > ${2}