We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 786e4a7 commit 9eba395Copy full SHA for 9eba395
script/generate-patch
@@ -8,13 +8,16 @@ if [ $# -ne 1 ]; then
8
fi
9
10
FILE=Sources/$1/Generated.swift
11
-NEW_HEADER=$(cat <<EOF
12
---- a/$FILE
13
-+++ b/$FILE
14
-EOF)
15
16
cp $FILE $FILE.modified
17
swift run WebIDLToSwift --no-patch
18
-git diff --no-ext-diff --no-index $FILE $FILE.modified | tail -n +5 | sed "s/^/$NEW_HEADER/" | sed 's/[[:space:]]*$//'
+
+cat <<EOF > "Patches/$1.patch"
+--- a/$FILE
++++ b/$FILE
+EOF
19
20
+git diff --no-ext-diff --no-index $FILE $FILE.modified | tail -n +5 | sed 's/[[:space:]]*$//' >> "Patches/$1.patch"
21
22
swift run WebIDLToSwift
23
rm $FILE.modified
0 commit comments