1LIBXML2=$1 2TARGETCPU=$2 3TARGETTYPE=$3 4 5if [ -z "$2" ]; then 6 TARGETCPU=SIMPENTIUMgnu 7fi 8 9if [ -z "$3" ]; then 10 TARGETTYPE=RTP 11fi 12 13echo "LIBXML2 Version: ${LIBXML2}" 14echo "LIBXML2 Target CPU: ${TARGETCPU}" 15echo "LIBXML2 Target Type: ${TARGETTYPE}" 16 17rm -fR src 18tar xvzf ${LIBXML2}.tar.gz 19mv ${LIBXML2} src 20cd src 21 22./configure --with-minimum --with-reader --with-writer --with-regexps --with-threads --with-thread-alloc 23 24find . -name '*.in' -exec rm -fR {} + 25find . -name '*.am' -exec rm -fR {} + 26rm -fR *.m4 27rm -fR *.pc 28rm -fR *.pl 29rm -fR *.py 30rm -fR *.spec 31rm -fR .deps 32rm -fR AUTHORS 33rm -fR bakefile 34rm -fR ChangeLog 35rm -fR config.guess 36rm -fR config.log 37rm -fR config.status 38rm -fR config.stub 39rm -fR config.sub 40rm -fR configure 41rm -fR COPYING 42rm -fR Copyright 43rm -fR depcomp 44rm -fR doc 45rm -fR example 46rm -fR INSTALL 47rm -fR install-sh 48rm -fR libxml.3 49rm -fR ltmain.sh 50rm -fR Makefile 51rm -fR Makefile.tests 52rm -fR macos 53rm -fR mkinstalldirs 54rm -fR missing 55rm -fR nanoftp.c 56rm -fR nanohttp.c 57rm -fR NEWS 58rm -fR python 59rm -fR README 60rm -fR README.tests 61rm -fR regressions.xml 62rm -fR result 63rm -fR runsuite.c 64rm -fR runtest.c 65rm -fR test 66rm -fR test*.c 67rm -fR TODO* 68rm -fR trio* 69rm -fR vms 70rm -fR win32 71rm -fR xml2* 72rm -fR xmllint.c 73rm -fR xstc 74 75cd .. 76 77make clean all VXCPU=${TARGETCPU} VXTYPE=${TARGETTYPE} 78 79if [ "${TARGETTYPE}" = "RTP" ]; then 80 cp libxml2.so ../../lib/. 81else 82 cp xml2.out ../../bin/. 83fi 84 85cp -R src/include/libxml ../../include/.