-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a455a8
commit cf94e5f
Showing
6 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
greet: | ||
create-patch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
rm -Recurse PatchedSources/ | ||
rm -Recurse OriginalSources/ | ||
Remove-Item -Recurse PatchedSources/ | ||
Remove-Item -Recurse OriginalSources/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Write-Host "Coping sources..." | ||
rm -Recurse PatchedSources/ | ||
cp -Recurse OriginalSources/ PatchedSources/ | ||
Remove-Item -Recurse PatchedSources/ | ||
Copy-Item -Recurse OriginalSources/ PatchedSources/ | ||
|
||
|
||
Write-Host "Patching sources..." | ||
cp Patches/Polyfill.h PatchedSources/ | ||
Copy-Item Patches/Polyfill.h PatchedSources/ | ||
git apply --reject --whitespace=fix Patches/quickjs-patches.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
rm -Recurse PatchedSources/ | ||
rm -Recurse OriginalSources/ | ||
Remove-Item -Recurse PatchedSources/ | ||
Remove-Item -Recurse OriginalSources/ | ||
|
||
cp -Recurse DevSources/ OriginalSources | ||
cp -Recurse DevPatches/ PatchedSources | ||
Copy-Item -Recurse DevSources/ OriginalSources | ||
Copy-Item -Recurse DevPatches/ PatchedSources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
rm PatchedSources/Polyfill.h | ||
Remove-Item PatchedSources/Polyfill.h | ||
|
||
$patchFileRaw = "Patches/quickjs-patches-raw.patch"; | ||
$patchFile = "Patches/quickjs-patches.patch"; | ||
|
||
git diff OriginalSources/ PatchedSources/ | Set-Content $patchFileRaw | ||
Get-Content -Raw $patchFileRaw | % {$_ -replace "`r", ""} | Set-Content -NoNewline $patchFile | ||
|
||
rm $patchFileRaw | ||
Remove-Item $patchFileRaw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Write-Host "Coping sources..." | ||
rm -Recurse PatchedSources/ | ||
rm -Recurse OriginalSources/ | ||
Remove-Item -Recurse PatchedSources/ | ||
Remove-Item -Recurse OriginalSources/ | ||
git clone https://github.com/bellard/quickjs OriginalSources | ||
cp -Recurse OriginalSources/ PatchedSources/ | ||
Copy-Item -Recurse OriginalSources/ PatchedSources/ | ||
|
||
Write-Host "Patching sources..." | ||
cp Patches/Polyfill.h PatchedSources/ | ||
Copy-Item Patches/Polyfill.h PatchedSources/ | ||
git apply --reject --whitespace=fix Patches/quickjs-patches.patch |