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