update.sh: Add 'DO NOT EDIT' note to generated Dockerfiles

Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
This commit is contained in:
Daniel Rudolf
2023-06-01 16:41:20 +02:00
parent 2cb9a6214e
commit 5ee9a9ced5
+5 -2
View File
@@ -41,9 +41,12 @@ function create_variant() {
echo "updating $version [$branch] $variant"
# Create Dockerfile
# Create the variant directory with a Dockerfile
mkdir -p "$variant"
local template="Dockerfile-${base[$variant]}.template"
cp "$template" "$variant/Dockerfile"
echo "# DO NOT EDIT: created by update.sh from $template" > "$variant/Dockerfile"
cat "$template" >> "$variant/Dockerfile"
# Replace Dockerfile variables
sed -ri -e '