Skip to content

Commit

Permalink
Fix "deprecated" + autogenerated
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Mar 10, 2017
1 parent 0b65318 commit 88b9db9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
15 changes: 15 additions & 0 deletions .template-helpers/autogenerated-warning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!--
********************************************************************************
WARNING:
DO NOT EDIT "%%REPO%%/README.md"
IT IS AUTO-GENERATED
(from the other files in "%%REPO%%/" combined with a set of templates)
********************************************************************************
-->
16 changes: 0 additions & 16 deletions .template-helpers/template.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
<!--
********************************************************************************
WARNING:
DO NOT EDIT "%%REPO%%/README.md"
IT IS AUTO-GENERATED
(from the other files in "%%REPO%%/" combined with a set of templates)
********************************************************************************
-->

# Supported tags and respective `Dockerfile` links

%%TAGS%%
Expand Down
7 changes: 6 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ for repo in "${repos[@]}"; do
deprecated+=$'\n\n'
fi

{ echo -n "$deprecated"; cat "$helperDir/template.md"; } > "$repo/README.md"
{
cat "$helperDir/autogenerated-warning.md"
echo
echo -n "$deprecated"
cat "$helperDir/template.md"
} > "$repo/README.md"

echo ' TAGS => generate-dockerfile-links-partial.sh'
partial="$("$helperDir/generate-dockerfile-links-partial.sh" "$repo")"
Expand Down

0 comments on commit 88b9db9

Please sign in to comment.