- Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathupdate-tbb.R
24 lines (18 loc) · 637 Bytes
/
update-tbb.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# update as appropriate for new TBB releases, then re-run script
url<-"https://github.com/uxlfoundation/oneTBB/archive/refs/tags/v2022.0.0.tar.gz"
owd<- setwd("src")
unlink("tbb", recursive=TRUE)
download.file(url, destfile= basename(url), mode="wb")
before<- list.files()
untar(basename(url))
after<- list.files()
folder<- setdiff(after, before)
print(folder)
file.rename(folder, "tbb")
setwd("tbb")
remove<- c(".gitattributes", ".github", "doc", "examples", "python", "test")
unlink(remove, recursive=TRUE)
bazel<- list.files(pattern="[Bb]azel", all.files=TRUE)
unlink(bazel)
setwd("..")
unlink(basename(url))