Skip to content

Commit 2d5852a

Browse files
committed
trying to fix makevars.win
1 parent 135a62c commit 2d5852a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Makevars.win

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ PKG_LIBS += \
1515
all: clean winlibs
1616

1717
clean:
18-
powershell -Command "Remove-Item -Force -Recurse $(OBJECTS), $(SHLIB)"
18+
rm -Rf $(OBJECTS) $(SHLIB)
1919

2020
winlibs:
21-
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R"
22-
powershell -Command "Remove-Item -Force -Recurse ../inst/share; New-Item -ItemType Directory ../inst/share"
21+
mkdir -p ../inst
22+
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" ${VERSION}
23+
cp -Rf ../windows/tessdata ../inst/
24+
cp -Rf ${RWINLIB}/share/tessdata ../inst/
2325

2426
.PHONY: all winlibs clean
2527

0 commit comments

Comments
 (0)