Skip to content

Commit dc2231f

Browse files
committed
Make scripts depend on branch
1 parent c5f7f53 commit dc2231f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dependencies.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
# Please make sure that bin/bash is the location of your bash terminal,if not please replace with your local machine's bash path
3-
3+
branch="${1:-development}"
44
sudo apt install -y curl
5-
curl -O https://raw.githubusercontent.com/robocomp/robocomp/development/classes/threadpool/threadpool.h && sudo mkdir -p /usr/include/threadpool && sudo mv threadpool.h /usr/include/threadpool
5+
curl -O https://raw.githubusercontent.com/robocomp/robocomp/$branch/classes/threadpool/threadpool.h && sudo mkdir -p /usr/include/threadpool && sudo mv threadpool.h /usr/include/threadpool
66
sudo apt install qtbase5-dev
77
sudo apt-get install -y libopenscenegraph-dev
88
sudo apt install libasio-dev

installation.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
## like this: curl -o- -L https://raw.githubusercontent.com/robocomp/cortex/development/installation.sh | bash -x
77
## This will install all the cortex dependencies and the library itself. You can read this script and dependencies.sh to better know what is done.
88
#######################
9-
9+
branch="${1:-development}"
1010
set -e
11-
git clone https://github.com/robocomp/cortex.git
11+
git clone --branch $branch https://github.com/robocomp/cortex.git
1212
cd cortex
1313
yes | bash dependencies.sh
1414
mkdir -p build

0 commit comments

Comments
 (0)