mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-07 11:23:23 +00:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
--- ./cli/scripts/docs/generate-man.sh.orig 2021-12-05 15:26:07.599604265 +0100
|
|
+++ ./cli/scripts/docs/generate-man.sh 2021-12-05 15:28:20.809486509 +0100
|
|
@@ -26,13 +26,13 @@
|
|
# update vendor
|
|
./scripts/vendor update
|
|
# build gen-manpages
|
|
- go build -mod=vendor -modfile=vendor.mod -tags manpages -o /tmp/gen-manpages ./man/generate.go
|
|
+ go build -mod=vendor -modfile=vendor.mod -tags manpages -o build/gen-manpages ./man/generate.go
|
|
# build go-md2man
|
|
- go build -mod=vendor -modfile=vendor.mod -o /tmp/go-md2man ./vendor/github.com/cpuguy83/go-md2man/v2
|
|
+ go build -mod=vendor -modfile=vendor.mod -o build/go-md2man ./vendor/github.com/cpuguy83/go-md2man/v2
|
|
)
|
|
|
|
mkdir -p man/man1
|
|
-(set -x ; /tmp/gen-manpages --root "." --target "$(pwd)/man/man1")
|
|
+(set -x ; "$buildir"/build/gen-manpages --root "." --target "$(pwd)/man/man1")
|
|
|
|
(
|
|
cd man
|
|
@@ -45,6 +45,6 @@
|
|
continue
|
|
fi
|
|
mkdir -p "./man${num}"
|
|
- (set -x ; /tmp/go-md2man -in "$FILE" -out "./man${num}/${name}")
|
|
+ (set -x ; "$buildir"/build/go-md2man -in "$FILE" -out "./man${num}/${name}")
|
|
done
|
|
)
|