3
# builds new pdftex binaries
7
PATH=/usr/mingw32/mingw32/bin:$PATH
10
# try to find gnu make; we need it
12
if make -v 2>&1| grep -q "GNU Make"
14
echo "Your make is a GNU-make; I will use that"
15
elif gmake -v >/dev/null 2>&1
18
echo "You have a GNU-make installed as gmake; I will use that"
20
echo "I can't find a GNU-make; I'll try to use make and hope that works."
21
echo "If it doesn't, please install GNU-make."
25
# --make : only make, no make distclean; configure
26
# --parallel : make -j 2 -l 3.0
29
MAX_LOAD_IF_PARALLEL=3.0
30
while [ "$1" != "" ] ; do
31
if [ "$1" = "--make" ] ;
33
elif [ "$1" = "--parallel" ] ;
34
then MAKE="$MAKE -j $JOBS_IF_PARALLEL -l $MAX_LOAD_IF_PARALLEL" ;
48
if [ -e "$B"/Makefile -a $ONLY_MAKE = "FALSE" ]
51
elif [ ! -e "$B"/Makefile ]
62
# clean up (uncomment the next line if you have commented out the rm and
65
# do a configure without all the things we don't need
66
if [ "$ONLY_MAKE" = "FALSE" ]
68
# do a configure without all the things we don't need
69
echo "ignore warnings and errors about the main texmf tree"
71
--target=i386-mingw32 \
72
--build=i386-mingw32 \
75
--with-cxx-runtime-hack \
93
--without-lcdf-typetools \
94
--without-makeindexk \
95
--without-mkocp-default \
96
--without-mkofm-default \
109
--without-texi2html \
115
--without-xdvipdfmx \
121
(cd texk/web2c/web2c; $MAKE) || exit 1
122
(cd texk/web2c; $MAKE ../kpathsea/libkpathsea.la) || exit 1
123
(cd texk/web2c/lib; $MAKE) || exit 1
124
if [ ! "$ONLY_MAKE" = "FALSE" ]
126
(cd texk/web2c/luatexdir; $MAKE libpdf.a) || exit 1
128
(cd texk/web2c; $MAKE luatex) || exit 1
133
mkdir -p windows/texk/web2c
134
cp "$B"/texk/web2c/luatex windows/texk/web2c/luatex.exe
135
$STRIP windows/texk/web2c/luatex.exe
136
ls -l windows/texk/web2c/luatex.exe
138
# restore environment