diff options
-rwxr-xr-x | bootstrap | 31 | ||||
-rwxr-xr-x | dist_bootstrap | 36 |
2 files changed, 30 insertions, 37 deletions
@@ -10,7 +10,6 @@ existence() | |||
10 | command -v "$1" >/dev/null 2>&1 | 10 | command -v "$1" >/dev/null 2>&1 |
11 | } | 11 | } |
12 | 12 | ||
13 | |||
14 | if existence uncrustify; then | 13 | if existence uncrustify; then |
15 | echo "Installing uncrustify hook and configuration" | 14 | echo "Installing uncrustify hook and configuration" |
16 | # Install uncrustify format symlink (if possible) | 15 | # Install uncrustify format symlink (if possible) |
@@ -32,6 +31,36 @@ else | |||
32 | echo "yapf not detected, please install yapf if you plan on contributing python code" | 31 | echo "yapf not detected, please install yapf if you plan on contributing python code" |
33 | fi | 32 | fi |
34 | 33 | ||
34 | if test $1 = "-d"; then | ||
35 | if existence texi2mdoc; then | ||
36 | echo "texi2mdoc: exists, pass --enable-texi2mdoc-generation to configure" | ||
37 | else | ||
38 | dir=$(dirname "$(readlink -f -- "$0")") | ||
39 | mkdir -p $dir/contrib/vendored | ||
40 | cd contrib/vendored | ||
41 | if existence ftp; then | ||
42 | ftp https://mandoc.bsd.lv/texi2mdoc/snapshots/texi2mdoc-0.1.2.tgz | ||
43 | elif existence curl; then | ||
44 | curl --output texi2mdoc-0.1.2.tgz https://mandoc.bsd.lv/texi2mdoc/snapshots/texi2mdoc-0.1.2.tgz | ||
45 | elif existence wget; then | ||
46 | wget https://mandoc.bsd.lv/texi2mdoc/snapshots/texi2mdoc-0.1.2.tgz | ||
47 | elif existence fetch; then | ||
48 | fetch https://mandoc.bsd.lv/texi2mdoc/snapshots/texi2mdoc-0.1.2.tgz | ||
49 | else | ||
50 | echo "skipping texi2mdoc build, no ftp or curl or wget or fetch found" | ||
51 | fi | ||
52 | if test -e texi2mdoc-0.1.2.tgz; then | ||
53 | tar xzf texi2mdoc-0.1.2.tgz | ||
54 | cd texi2mdoc-0.1.2 | ||
55 | dir=$(dirname "$(readlink -f -- "$0")") | ||
56 | make | ||
57 | echo "please prepend or append $dir/contrib/vendored/texi2mdoc/ to your PATH before running configure" | ||
58 | else | ||
59 | echo "no texi2mdoc, skipping" | ||
60 | fi | ||
61 | fi | ||
62 | fi | ||
63 | |||
35 | 64 | ||
36 | echo "checking for libtoolize / libtool... " | 65 | echo "checking for libtoolize / libtool... " |
37 | 66 | ||
diff --git a/dist_bootstrap b/dist_bootstrap deleted file mode 100755 index 8e8d5c98c..000000000 --- a/dist_bootstrap +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # This file is in the public domain. | ||
3 | # SPDX-License-Identifier: 0BSD | ||
4 | |||
5 | dir=$(dirname "$(readlink -f -- "$0")") | ||
6 | . $dir/bootstrap | ||
7 | |||
8 | if existence texi2mdoc; then | ||
9 | echo "texi2mdoc: exists, pass --enable-texi2mdoc-generation to configure" | ||
10 | else | ||
11 | dir=$(dirname "$(readlink -f -- "$0")") | ||
12 | mkdir -p $dir/contrib/vendored | ||
13 | cd 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 | ||
22 | else | ||
23 | echo "skipping texi2mdoc build, no ftp or curl or wget or fetch found" | ||
24 | fi | ||
25 | if test -e texi2mdoc-0.1.2.tgz; then | ||
26 | tar xzf texi2mdoc-0.1.2.tgz | ||
27 | cd texi2mdoc-0.1.2 | ||
28 | dir=$(dirname "$(readlink -f -- "$0")") | ||
29 | #make PREFIX=$dir/../../../contrib/vendored/texi2mdoc | ||
30 | #make install PREFIX=$dir/../../../contrib/vendored/texi2mdoc | ||
31 | make | ||
32 | echo "please prepend or append $dir/contrib/vendored/texi2mdoc/ to your PATH before running configure" | ||
33 | else | ||
34 | echo "no texi2mdoc, skipping" | ||
35 | fi | ||
36 | fi | ||