forked from UCL-ARC/rcps-buildscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathR-aristotle_sync
More file actions
executable file
·36 lines (31 loc) · 842 Bytes
/
R-aristotle_sync
File metadata and controls
executable file
·36 lines (31 loc) · 842 Bytes
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
30
31
32
33
34
35
36
#!/usr/bin/env bash
###############################################
# Syncs ~ccspapp/Scratch/R/<R-version> from Legion to Aristotle
#
# Default R vesion is 3.4.0-OpenBLAS
#
# by Brian Alston, August 2016
#
# Updated June 2017 for R 3.4.0
VERSION=${VERSION:-3.4.0-OpenBLAS}
INSTALL_PREFIX=${INSTALL_PREFIX:-~ccspapp/Scratch/R/}
REM_PREFIX=${REM_PREFIX:-Scratch/R}
COPY_CMD=scp
if [ $# -gt 1 ]
then
echo "R-aristotle_sync: *** ERROR *** wrong number of arguments"
echo ""
echo " usage: R-aristotle_sync [R version eg 3.3.0-OpenBLAS]"
exit 1
fi
if [ $# == 1 ]
then
VERSION=$1
fi
mkdir -p $INSTALL_PREFIX
cd $INSTALL_PREFIX
echo Copying using: scp -r ccspapp@login05.external.legion.ucl.ac.uk:$REM_PREFIX/R-$VERSION .
scp -r ccspapp@login05.external.legion.ucl.ac.uk:$REM_PREFIX/R-$VERSION .
ls -l
du -hs *
echo "Done."