mgh: fix for default HDD DMA mode, that wasn't correctly set
[open-ps2-loader.git] / thirdparty / freetype-2.3.12 / builds / atari / gen-purec-patch.sh
blob1ec050c11fa3cbbba26c610dfa32787f5a995795
1 #!/bin/sh
3 TOP_DIR=.
4 OBJ_DIR=.
6 for x in "$@"
7 do
8 case x"$x" in
9 x--srcdir=* | x--topdir=* )
10 TOP_DIR=`echo $x | sed 's/^--[a-z]*dir=//'`
12 x--builddir=* | x--objdir=* )
13 OBJ_DIR=`echo $x | sed 's/^--[a-z]*dir=//'`
15 esac
16 done
18 mkdir -p ${OBJ_DIR}/builds/atari/tmp/orig
20 ( cd ${TOP_DIR} && find . -name '*.[CHch]' -type f | fgrep -v builds/atari/tmp | cpio -o ) | \
21 ( cd ${OBJ_DIR}/builds/atari/tmp/orig && cpio -idum )
22 cp ${TOP_DIR}/builds/atari/deflinejoiner.awk ${OBJ_DIR}/builds/atari/tmp
24 pushd ${OBJ_DIR}/builds/atari/tmp
26 cp -pr orig purec
27 for f in `cd orig && find . -type f`
29 echo filter $f
30 env LANG=C awk -f deflinejoiner.awk < orig/$f > purec/$f
31 done
33 echo '#define FT2_BUILD_LIBRARY' > purec/include/ft2build.h
34 echo '#include "ATARI.H"' >> purec/include/ft2build.h
35 env LANG=C awk -f deflinejoiner.awk < orig/include/ft2build.h >> purec/include/ft2build.h
37 env LANG=C diff -ur orig purec > ../purec.diff
39 popd
40 rm -rf ${OBJ_DIR}/builds/atari/tmp