Skip to content
Snippets Groups Projects
Commit fd509533 authored by Mick Jordan's avatar Mick Jordan
Browse files

support FastR subprocesses

parent 6710c39b
No related branches found
No related tags found
No related merge requests found
#
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
......@@ -29,8 +29,11 @@ all:
$(MAKE) -C builtinlibs
$(MAKE) -C fficall
$(MAKE) -C library
$(MAKE) -C run
clean:
$(MAKE) -C builtinlibs clean
$(MAKE) -C fficall clean
$(MAKE) -C library clean
$(MAKE) -C run clean
\ No newline at end of file
#
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
.PHONY: bindir all rcmd
FASTR_BINDIR = $(TOPDIR)/../bin
all: bindir rcmd
bindir:
mkdir -p $(FASTR_BINDIR)
rcmd: $(FASTR_BINDIR)/R
$(FASTR_BINDIR)/R: R.sh Rscript.sh
cp R.sh $(FASTR_BINDIR)/R
cp Rscript.sh $(FASTR_BINDIR)/Rscript
chmod +x $(FASTR_BINDIR)/R
touch $(FASTR_BINDIR)/INSTALL
clean:
#
# This material is distributed under the GNU General Public License
# Version 2. You may review the terms of this license at
# http://www.gnu.org/licenses/gpl-2.0.html
#
# Copyright (c) 1995-2012, The R Core Team
# Copyright (c) 2003, The R Foundation
# Copyright (c) 2015, Oracle and/or its affiliates
#
# All rights reserved.
#
# Fledgling R command to startup FastR
# Currently all R CMD calls are forwarded to GnuR
#
GNUR=`which R`
case ${1} in
CMD)
exec $GNUR "$@";;
*)
exec mx R "$@";;
esac
#
# This material is distributed under the GNU General Public License
# Version 2. You may review the terms of this license at
# http://www.gnu.org/licenses/gpl-2.0.html
#
# Copyright (c) 1995-2012, The R Core Team
# Copyright (c) 2003, The R Foundation
# Copyright (c) 2015, Oracle and/or its affiliates
#
# All rights reserved.
#
# Fledgling Rscript command to startup FastR
mx Rscript "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment