Skip to content

Commit

Permalink
Upgrade libsass from 3.6.4 to 3.6.5
Browse files Browse the repository at this point in the history
Closes #122 by way of sass/libsass#3129
  • Loading branch information
cpsievert committed Jan 11, 2023
1 parent 81f61c3 commit 6cb8239
Show file tree
Hide file tree
Showing 35 changed files with 984 additions and 970 deletions.
11 changes: 9 additions & 2 deletions scripts/apply_libsass_patches.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@

library(rprojroot)

patch_dir <- rprojroot::find_package_root_file("scripts/patches")
# Remove libsass test files (the entire `test` directory) since they contain unicode
# directory paths, and R CMD check provides a warning.
unlink(
find_package_root_file("src/libsass/test"),
recursive = TRUE
)

patch_dir <- find_package_root_file("scripts/patches")

for (patch in list.files(patch_dir, full.names = TRUE)) {
tryCatch({
message(sprintf("Applying %s", basename(patch)))
system(sprintf("git apply '%s'", patch))
system(sprintf("git apply --reject --whitespace=fix '%s'", patch))
},
error = function(e) {
quit(save = "no", status = 1)
Expand Down
Loading

0 comments on commit 6cb8239

Please sign in to comment.