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