-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathconfigure.win
30 lines (27 loc) · 1.07 KB
/
configure.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# `stringi` configure.win
# Copyright (c) 2013-2021, Marek Gagolewski <https://www.gagolewski.com>
# this is an architecture-independent configure.win file
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e '
fin <- "src/uconfig_local.h.in";
fout <- "src/uconfig_local.h";
f <- readLines(fin);
f <- gsub("@ICU_FOUND@", 0, f, fixed = TRUE);
f <- gsub("@ICUDT_DIR@", "icu69/data", f, fixed = TRUE);
f <- gsub("@ICU_BUNDLE_VERSION@", "69", f, fixed = TRUE);
f <- gsub("@ICUDT_ENDIANNESS@", .Platform$endian, f, fixed = TRUE);
con <- file(fout, "wb") # LF line ending
writeLines(f, con);
close(con)
' `
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e '
fin <- "src/install.libs.R.in";
fout <- "src/install.libs.R";
f <- readLines(fin);
f <- gsub("@ICU_FOUND@", 0, f, fixed = TRUE);
f <- gsub("@ICUDT_DIR@", "icu69/data", f, fixed = TRUE);
f <- gsub("@ICU_BUNDLE_VERSION@", "69", f, fixed = TRUE);
f <- gsub("@ICUDT_ENDIANNESS@", .Platform$endian, f, fixed = TRUE);
con <- file(fout, "wb") # LF line ending
writeLines(f, con);
close(con)
' `