Quellcode durchsuchen

Fix "deprecated" + autogenerated

Tianon Gravi vor 8 Jahren
Ursprung
Commit
88b9db9e5a
3 geänderte Dateien mit 21 neuen und 17 gelöschten Zeilen
  1. 15 0
      .template-helpers/autogenerated-warning.md
  2. 0 16
      .template-helpers/template.md
  3. 6 1
      update.sh

+ 15 - 0
.template-helpers/autogenerated-warning.md

@@ -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)
+
+********************************************************************************
+
+-->

+ 0 - 16
.template-helpers/template.md

@@ -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%%

+ 6 - 1
update.sh

@@ -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")"