#!/bin/sh

# Copyright (c) 2005- Storey Lab
# 
# Script to determine the command line for running an R command
# on various operating systems
#

OS=`uname -s`
case $OS in 
CYGWIN*)
	echo "cmd /c RCMD"
	;;
MINGW*)
	echo "RCMD"
	;;
Darwin* | Linux*)
	echo "R CMD"
	;;
*)
	echo "Unsupported OS: $OS" 1>&2
	exit 1
	;;
esac
