prepare-headers.sh: skip incompatible MPW header files

This commit is contained in:
Wolfgang Thaller 2016-04-03 23:03:12 +02:00
parent 3c854590b8
commit 258488e2a5
1 changed files with 11 additions and 4 deletions

View File

@ -4,11 +4,18 @@ OUT=$2
# Make Mac OS X's tr and sed not complain that the files are not UTF-8
export LANG=en
# cp $IN/[A-Z]*.h $OUT/
#for file in $(cd $IN; ls [A-Z]*.h); do
for file in $(cd $IN; ls *.h); do
tr '\r' '\n' < $IN/$file > $OUT/$file
#| sed 's/= \(0x[0-9A-Z]*\);/ONEWORDINLINE(\1);/' > $OUT/$file
case file in
errno.h|fcntl.h|fenv.h|fstream.h|handler.h|headers.h|FSpio.h)
;;
ioctl.h|iomanip.h|iostream.h|limits.h|locale.h|math.h|new.h)
;;
sejmp.h|signal.h|std*.h|string.h|strstream.h|time.h|typeinfo.h)
;;
*)
tr '\r' '\n' < $IN/$file > $OUT/$file
;;
esac
done
############################# ConditionalMacros.h #############################