patch1 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2016 Matthew R. Wette
  4. #
  5. # Copying and distribution of this file, with or without modification,
  6. # are permitted in any medium without royalty provided the copyright
  7. # notice and this notice are preserved. This file is offered as-is,
  8. # without any warranty.
  9. # fix configure
  10. if [ ! -f ../configure-orig ]; then
  11. cp ../configure ../configure-orig
  12. fi
  13. ed ../configure <<'EndOfInput'
  14. /^cat >confcache
  15. i
  16. ac_config_files="$ac_config_files cputil/Makefile cputil/tests/Makefile"
  17. ac_config_files="$ac_config_files cputil/mindist"
  18. .
  19. w
  20. q
  21. EndOfInput
  22. # fix Makefile.in
  23. if [ ! -f ../Makefile.in-orig ]; then
  24. cp ../Makefile.in ../Makefile.in-orig
  25. fi
  26. ed ../Makefile.in <<'EndOfInput'
  27. /TOOLS =
  28. / none
  29. i
  30. cputil \
  31. .
  32. w
  33. q
  34. EndOfInput
  35. # fix Makefile.am
  36. if [ ! -f ../Makefile.am-orig ]; then
  37. cp ../Makefile.am ../Makefile.am-orig
  38. fi
  39. ed ../Makefile.am <<'EndOfInput'
  40. /TOOLS =
  41. / none
  42. i
  43. cputil \
  44. .
  45. w
  46. q
  47. EndOfInput
  48. # fix configure.ac
  49. if [ ! -f ../configure.ac-orig ]; then
  50. cp ../configure.ac ../configure.ac-orig
  51. fi
  52. ed ../configure.ac <<'EndOfInput'
  53. /AC_CONFIG_FILES(
  54. / none\/Makefile
  55. i
  56. cputil/Makefile
  57. cputil/tests/Makefile
  58. .
  59. w
  60. q
  61. EndOfInput
  62. # --- last line ---