Группа :: Система/Настройка/Прочее
Пакет: docker-cli
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: docker-cli-23.0.0-alt-fix-man-page-gen.patch
Скачать
Скачать
diff --git a/scripts/docs/generate-man.sh b/scripts/docs/generate-man.sh
index 6afed3fa87..dfa08163c1 100755
--- a/scripts/docs/generate-man.sh
+++ b/scripts/docs/generate-man.sh
@@ -21,14 +21,14 @@ trap clean EXIT
./scripts/vendor init
# install go-md2man and copy man/tools.go in root folder
# to be able to fetch the required dependencies
- go mod edit -modfile=vendor.mod -require=github.com/cpuguy83/go-md2man/v2@${MD2MAN_VERSION}
- cp man/tools.go .
+ #go mod edit -modfile=vendor.mod -require=github.com/cpuguy83/go-md2man/v2@${MD2MAN_VERSION}
+ #cp man/tools.go .
# update vendor
- ./scripts/vendor update
+ #./scripts/vendor update
# build gen-manpages
go build -mod=vendor -modfile=vendor.mod -tags manpages -o /tmp/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 /tmp/go-md2man ./vendor/github.com/cpuguy83/go-md2man/v2
)
mkdir -p man/man1
@@ -45,6 +45,6 @@ mkdir -p man/man1
continue
fi
mkdir -p "./man${num}"
- (set -x ; /tmp/go-md2man -in "$FILE" -out "./man${num}/${name}")
+ (set -x ; go-md2man -in "$FILE" -out "./man${num}/${name}")
done
)