forked from bedatadriven/renjin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupstream.sh
30 lines (22 loc) · 857 Bytes
/
upstream.sh
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
#!/usr/bin/env bash
ROOT=../R-3.5.3
SRC=$ROOT/src
# Headers
# Require some merging as Renjin makes a few changes
cp -r $SRC/include/* ./tools/gnur-installation/src/main/resources/include/
# Packages
PACK
for
# grDevices
# ~~~
# This is a difficult merge as we are combining C and Java Code
# As well as some sources from src/main that we migrate to the grDevices module
GRDC=packages/grDevices/src/main/c
cp $SRC/main/g_* $GRDC
cp $SRC/main/devices.c $GRDC/main-devices.c
cp $SRC/main/graphics.c $GRDC/main-graphics.c
cp $SRC/main/plot.c $GRDC/main-plot.c
cp $SRC/main/plotmath.c $GRDC/main-plotmath.c
cp $SRC/main/xspline.c $GRDC/main-xspline.h
cp $SRC/main/grDevices/src/*.c $GRDC/
cp $SRC/main/grDevices/src/grDevices.h $GRDC/