-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdo_experiment.sh
More file actions
executable file
·39 lines (33 loc) · 931 Bytes
/
do_experiment.sh
File metadata and controls
executable file
·39 lines (33 loc) · 931 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
#!/bin/bash -
#===============================================================================
#
# FILE: do_experiment.sh
#
# USAGE: ./do_experiment.sh mouse_name session_name session_type
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Dilawar Singh (), dilawars@ncbs.res.in
# ORGANIZATION: NCBS Bangalore
# CREATED: 12/16/2016 05:58:14 PM
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
if [ $# -lt 3 ]; then
echo "USAGE: $0 mouse_name session_num session_type"
exit
fi
mkdir -p _build
(
echo "Building everything"
cd _build
cmake -DANIMAL_NAME=$1 -DSESSION_NUM=$2 -DSESSION_TYPE=$3 ..
make
make upload
)
echo "Running everything"
cd _build && make run