diff --git a/generate-repo-stub-readme.sh b/generate-repo-stub-readme.sh index dfe248b95566..d7a537321999 100755 --- a/generate-repo-stub-readme.sh +++ b/generate-repo-stub-readme.sh @@ -17,7 +17,7 @@ EOUSAGE fi gitRepo='https://github.com/docker-library/docs' -hubPage="https://registry.hub.docker.com/_/$repo/" +hubPage="https://hub.docker.com/_/$repo/" canonicalRepo="https://github.com/docker-library/$repo" if [ -s "$repo/github-repo" ]; then @@ -26,6 +26,8 @@ fi canonicalRepo="$(curl -fsSLI -o /dev/null -w '%{url_effective}\n' "$canonicalRepo")" # follow redirects (http://stackoverflow.com/a/3077316/433558) travisRepo="${canonicalRepo#*://github.com/}" +maintainer="$(sed -e 's!%%GITHUB-REPO%%!'"$canonicalRepo"'!g' "$repo/maintainer.md")" + if [ -f "$repo/deprecated.md" ]; then echo '# DEPRECATED' echo @@ -34,13 +36,19 @@ if [ -f "$repo/deprecated.md" ]; then fi cat <