Skip to content

Commit

Permalink
Fix build script to build on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
leavauchier committed Jun 19, 2024
1 parent 229bf08 commit 7ee047b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/bin/sh
#!/bin/bash

set -e

FILE=~/anaconda3/etc/profile.d/conda.sh
if [ -e ~/anaconda3/etc/profile.d/conda.sh ]
FILE=${HOME}/anaconda3/etc/profile.d/conda.sh
if [ -e ${HOME}/anaconda3/etc/profile.d/conda.sh ]
then
source ~/anaconda3/etc/profile.d/conda.sh
source ${HOME}/anaconda3/etc/profile.d/conda.sh
elif [ -e ~/miniconda3/etc/profile.d/conda.sh ]
then
source ~/miniconda3/etc/profile.d/conda.sh
source ${HOME}/miniconda3/etc/profile.d/conda.sh
elif [ -e /usr/share/miniconda/etc/profile.d/conda.sh ]
then
source /usr/share/miniconda/etc/profile.d/conda.sh
elif [ -e ~/miniforge3/etc/profile.d/conda.sh ]
elif [ -e ${HOME}/miniforge3/etc/profile.d/conda.sh ]
then
source ~/miniforge3/etc/profile.d/conda.sh
source ${HOME}/miniforge3/etc/profile.d/conda.sh
elif [[ -z "${CONDASH}" ]]; then
echo ERROR: Failed to load conda.sh : ~/anaconda3/etc/profile.d/conda.sh or ~/miniforge3/etc/profile.d/conda.sh or env CONDASH
exit 1 # terminate and indicate error
Expand All @@ -26,9 +26,9 @@ fi
conda activate pdal_ign_plugin

export CONDA_PREFIX=$CONDA_PREFIX
echo conda is $CONDA_PREFIX
echo conda is $CONDA_PREFIX

mkdir build
mkdir -p build
cd build
cmake -G"Unix Makefiles" -DCONDA_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release ../
make install
Expand Down

0 comments on commit 7ee047b

Please sign in to comment.