-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·41 lines (35 loc) · 803 Bytes
/
install.sh
File metadata and controls
executable file
·41 lines (35 loc) · 803 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
37
38
39
40
41
#!/bin/bash
#
# typical usage
#
# mkdir ../snakemakeslurm-5.2.4-1
# ./install.sh $!
#
if [ "$1" == "-n" ]; then
FLAGS="$1"
shift 1
fi
if [ "$1" == "" ]; then
echo "SYNTAX: $0 target_dir"
echo ""
echo "example:"
latestver=$(cd modulefiles/snakemakeslurm/; ls -1 | grep -v \~ | tail -1)
echo "mkdir ../snakemakeslurm-${latestver}"
echo "$0 ../snakemakeslurm-${latestver}"
exit 1
fi
if [ ! -d $1 ]; then
echo "ERROR: not a directory: $1"
exit 1
fi
echo "# install exec and config"
rsync -hav --info=name2,stats0,flist0 $FLAGS \
./snakemakeslurm \
./slurm-status.py \
./cluster.slurm.cheaha.json \
$1
echo "# install modulefiles"
rsync -hav --info=name2,stats0,flist0 $FLAGS \
--exclude="*~" \
./modulefiles/snakemakeslurm \
$1/../../modulefiles