Browse Source

Merge pull request #24950 from dnephin/make-manpages-in-container

Make manpages in a container when creating deb/rpm
Sebastiaan van Stijn 9 years ago
parent
commit
1e83886dd5
3 changed files with 3 additions and 5 deletions
  1. 1 2
      hack/make/build-deb
  2. 1 2
      hack/make/build-rpm
  3. 1 1
      hack/make/ubuntu

+ 1 - 2
hack/make/build-deb

@@ -35,8 +35,7 @@ set -e
 	debDate="$(date --rfc-2822)"
 	debDate="$(date --rfc-2822)"
 
 
 	# if go-md2man is available, pre-generate the man pages
 	# if go-md2man is available, pre-generate the man pages
-	./man/generate.sh || true
-	# TODO decide if it's worth getting go-md2man in _each_ builder environment to avoid this
+	make manpages
 
 
 	builderDir="contrib/builder/deb/${PACKAGE_ARCH}"
 	builderDir="contrib/builder/deb/${PACKAGE_ARCH}"
 	pkgs=( $(find "${builderDir}/"*/ -type d) )
 	pkgs=( $(find "${builderDir}/"*/ -type d) )

+ 1 - 2
hack/make/build-rpm

@@ -51,8 +51,7 @@ set -e
 	rpmDate="$(date +'%a %b %d %Y')"
 	rpmDate="$(date +'%a %b %d %Y')"
 
 
 	# if go-md2man is available, pre-generate the man pages
 	# if go-md2man is available, pre-generate the man pages
-	./man/generate.sh || true
-	# TODO decide if it's worth getting go-md2man in _each_ builder environment to avoid this
+	make manpages
 
 
 	# Convert the CHANGELOG.md file into RPM changelog format
 	# Convert the CHANGELOG.md file into RPM changelog format
 	VERSION_REGEX="^\W\W (.*) \((.*)\)$"
 	VERSION_REGEX="^\W\W (.*) \((.*)\)$"

+ 1 - 1
hack/make/ubuntu

@@ -60,7 +60,7 @@ bundle_ubuntu() {
 	cp contrib/completion/fish/docker.fish "$DIR/etc/fish/completions/"
 	cp contrib/completion/fish/docker.fish "$DIR/etc/fish/completions/"
 
 
 	# Include man pages
 	# Include man pages
-	man/generate.sh
+	make manpages
 	manRoot="$DIR/usr/share/man"
 	manRoot="$DIR/usr/share/man"
 	mkdir -p "$manRoot"
 	mkdir -p "$manRoot"
 	for manDir in man/man?; do
 	for manDir in man/man?; do