build.sh 1.5 KB

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