dist_bootstrap 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. # This file is in the public domain.
  3. # SPDX-License-Identifier: 0BSD
  4. dir=$(dirname "$(readlink -f -- "$0")")
  5. . $dir/bootstrap
  6. if existence texi2mdoc; then
  7. echo "texi2mdoc: exists, pass --enable-texi2mdoc-generation to configure"
  8. else
  9. dir=$(dirname "$(readlink -f -- "$0")")
  10. mkdir -p $dir/contrib/vendored
  11. cd contrib/vendored
  12. if existence ftp; then
  13. ftp https://mandoc.bsd.lv/texi2mdoc/snapshots/texi2mdoc-0.1.2.tgz
  14. elif existence curl; then
  15. curl --output texi2mdoc-0.1.2.tgz https://mandoc.bsd.lv/texi2mdoc/snapshots/texi2mdoc-0.1.2.tgz
  16. elif existence wget; then
  17. wget https://mandoc.bsd.lv/texi2mdoc/snapshots/texi2mdoc-0.1.2.tgz
  18. elif existence fetch; then
  19. fetch https://mandoc.bsd.lv/texi2mdoc/snapshots/texi2mdoc-0.1.2.tgz
  20. else
  21. echo "skipping texi2mdoc build, no ftp or curl or wget or fetch found"
  22. fi
  23. if test -e texi2mdoc-0.1.2.tgz; then
  24. tar xzf texi2mdoc-0.1.2.tgz
  25. cd texi2mdoc-0.1.2
  26. dir=$(dirname "$(readlink -f -- "$0")")
  27. #make PREFIX=$dir/../../../contrib/vendored/texi2mdoc
  28. #make install PREFIX=$dir/../../../contrib/vendored/texi2mdoc
  29. make
  30. echo "please prepend or append $dir/contrib/vendored/texi2mdoc/ to your PATH before running configure"
  31. else
  32. echo "no texi2mdoc, skipping"
  33. fi
  34. fi