File: copy_hdf5_files.R

package info (click to toggle)
r-bioc-rhdf5lib 1.20.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 384 kB
  • sloc: sh: 67; ansic: 40; makefile: 7
file content (16 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
LIB_DIR <- commandArgs(TRUE)[1]
INCLUDE_DIR <- commandArgs(TRUE)[2]

ARCH <- ifelse(R.version$arch == "x86_64", "x64", "i386")
CRT <- ifelse(R.version$crt == "ucrt", "-ucrt", "")
LIB_TYPE <- paste0(ARCH, CRT)

message("Copying libraries")
library_tarball <- file.path("winlib", LIB_TYPE, "libraries.tar.gz")
untar(tarfile = library_tarball, exdir = LIB_DIR)

message("Copying headers")
headers <- list.files("hdf5", full.names = TRUE, recursive = TRUE)
invisible(file.copy(from = headers,  to = INCLUDE_DIR))

message("Done")