Browse Source

build: add debug [skip ci]

Baptiste Augrain 1 year ago
parent
commit
3b1a4e39c6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      prepare_vscode.sh

+ 4 - 1
prepare_vscode.sh

@@ -24,7 +24,10 @@ cd vscode || { echo "'vscode' dir not found"; exit 1; }
 for file in ../patches/*.patch; do
   if [[ -f "${file}" ]]; then
     echo applying patch: "${file}";
-    if ! git apply --ignore-whitespace "${file}"; then
+
+    grep '^+++' "${file}"  | sed -e 's#+++ [ab]/#./vscode/#' | while read line; do shasum -a 256 "${line}"; done
+
+    if ! git apply --verbose --ignore-whitespace "${file}"; then
       echo failed to apply patch "${file}" >&2
       exit 1
     fi