Skip to content
Snippets Groups Projects
Commit f4543437 authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

fix issue with sh and bash confusion

parent 3fbdb8bf
No related branches found
No related tags found
No related merge requests found
...@@ -508,7 +508,8 @@ _include_search_paths = [ ...@@ -508,7 +508,8 @@ _include_search_paths = [
'/usr/local/include', '/usr/local/include',
] ]
foreach idir : _include_search_paths foreach idir : _include_search_paths
if run_command('sh','-c','meson/directory_exists.sh',idir).returncode() == 0 _ret = run_command('sh','-c','meson/directory_exists.sh',idir).returncode()
if _ret == 0
inc_arg = idir inc_arg = idir
_Inc_arg = '-I' + idir _Inc_arg = '-I' + idir
if not found and compiler.has_header('gsl/gsl_blas.h', if not found and compiler.has_header('gsl/gsl_blas.h',
...@@ -521,7 +522,6 @@ endforeach ...@@ -521,7 +522,6 @@ endforeach
incdirs += [ my_incdirs ] incdirs += [ my_incdirs ]
############################################################ ############################################################
# features which are converted into preprocessor flags (-D) # features which are converted into preprocessor flags (-D)
# #
......
#!/bin/bash #!/bin/sh
# return 0 if directory exists, 1 otherwise # return 0 if directory exists, 1 otherwise
if [[ -d "$1" ]]; then if [ -d "$1" ]; then
exit 0; exit 0;
else else
exit 1; exit 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment