build_sec_OS.sh 487 Bytes
Newer Older
incardon's avatar
incardon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#! /bin/bash

# Make a directory in /tmp/OpenFPM_pdata

echo "Directory: $1"
echo "Machine: $2"

mkdir src/config


if [ "$2" == "windows10" ]; then
    echo "Compiling on windows10"

    echo "1" > input_install
    echo "2" >> input_install
    echo "y" >> input_install
17
    echo "1" >> input_install
incardon's avatar
incardon committed
18

incardon's avatar
incardon committed
19
    branch=$(git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3)    
incardon's avatar
incardon committed
20

21
    git pull origin master
incardon's avatar
incardon committed
22
    ./install -i "/home/jenkins/$branch" < input_install
incardon's avatar
incardon committed
23 24 25 26

fi