Add repo's deprecated notice to its stub readme too (if applicable)

This commit is contained in:
Tianon Gravi 2017-03-08 08:03:15 -08:00
parent 4365185292
commit 7438617499
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@ fi
canonicalRepo="$(curl -fsSLI -o /dev/null -w '%{url_effective}\n' "$canonicalRepo")" # follow redirects (http://stackoverflow.com/a/3077316/433558) canonicalRepo="$(curl -fsSLI -o /dev/null -w '%{url_effective}\n' "$canonicalRepo")" # follow redirects (http://stackoverflow.com/a/3077316/433558)
travisRepo="${canonicalRepo#*://github.com/}" travisRepo="${canonicalRepo#*://github.com/}"
if [ -f "$repo/deprecated.md" ]; then
echo '# DEPRECATED'
echo
cat "$repo/deprecated.md"
echo
fi
cat <<EOREADME cat <<EOREADME
# About this Repo # About this Repo