diff --git a/prepare-headers.sh b/prepare-headers.sh index 154d023006..4a27c9c493 100644 --- a/prepare-headers.sh +++ b/prepare-headers.sh @@ -5,11 +5,13 @@ OUT=$2 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 [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 done +############################# ConditionalMacros.h ############################# cat > $OUT/ConditionalMacros.h <> $OUT/ConditionalMacros.h < $OUT/fp.h <> $OUT/fp.h + +cat >> $OUT/fp.h < $OUT/MixedMode.h + +############################# CGBase.h ############################# +if [ -r $IN/CGBase.h ]; then +cat > $OUT/CGBase.h < 0x2300. + ... otherwise, it contains an incompatible redefinition. */ +#pragma push_macro("__MWERKS__") +#define __MWERKS__ 0x6666 + +END_MARKER + +tr '\r' '\n' < $IN/CGBase.h >> $OUT/CGBase.h + +cat >> $OUT/CGBase.h <