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=//'`
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
27 for f
in `cd orig && find . -type f`
30 env LANG
=C
awk -f deflinejoiner.
awk < orig
/$f > purec
/$f
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
40 rm -rf ${OBJ_DIR}/builds
/atari
/tmp