From 9eba3956087ef76eecc94e79446ef38e210814db Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Mon, 24 Apr 2023 15:50:57 -0400 Subject: [PATCH] Fix generate-patch script --- script/generate-patch | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/script/generate-patch b/script/generate-patch index 486acf2..97caf3a 100755 --- a/script/generate-patch +++ b/script/generate-patch @@ -8,13 +8,16 @@ if [ $# -ne 1 ]; then fi FILE=Sources/$1/Generated.swift -NEW_HEADER=$(cat < "Patches/$1.patch" +--- a/$FILE ++++ b/$FILE +EOF + +git diff --no-ext-diff --no-index $FILE $FILE.modified | tail -n +5 | sed 's/[[:space:]]*$//' >> "Patches/$1.patch" + swift run WebIDLToSwift rm $FILE.modified