@@ -40,7 +40,7 @@ find_or_install()
4040 package_in_path=false
4141 fi
4242
43- package_install_path=` ./build $package --default --query-path `
43+ package_install_path=` ./build.sh -P $package `
4444
4545 printf " $this_script : Checking whether $executable is in the directory in which $this_script \n"
4646 printf " installs it by default and whether the user has executable permission for it..."
@@ -53,7 +53,7 @@ find_or_install()
5353 printf " no.\n"
5454 fi
5555
56- minimum_version=` ./build $package --default --query-version `
56+ minimum_version=` ./build.sh -V $package `
5757
5858 if [[ " $package " == " cmake" ]]; then
5959
@@ -76,12 +76,12 @@ find_or_install()
7676 elif [[ " $package_in_path " == " true" ]]; then
7777 printf " $this_script : Checking whether $package in PATH is version < $minimum_version ... "
7878
79- if ! ./check_version.sh $package ` ./build $package --default --query-version ` ; then
79+ if ! ./check_version.sh $package ` ./build.sh -V $package ` ; then
8080 printf " yes.\n"
8181 # Here we place $package on the dependency stack to trigger the build of the above file:
8282 stack_push dependency_pkg $package " none"
8383 stack_push dependency_exe $package " none"
84- stack_push dependency_path ` ./build cmake --default --query-path ` " none"
84+ stack_push dependency_path ` ./build.sh -P cmake ` " none"
8585
8686 else
8787 printf " no.\n"
@@ -96,7 +96,7 @@ find_or_install()
9696 else # Build package ($package has no prerequisites)
9797 stack_push dependency_pkg $package " none"
9898 stack_push dependency_exe $package " none"
99- stack_push dependency_path ` ./build $package --default --query-path ` " none"
99+ stack_push dependency_path ` ./build.sh -P $package ` " none"
100100 fi
101101
102102 elif [[ $package == " mpich" ]]; then
@@ -130,7 +130,7 @@ find_or_install()
130130 # Trigger 'find_or_install gcc' and subsequent build of $package
131131 stack_push dependency_pkg " none" $package " gcc"
132132 stack_push dependency_exe " none" $executable " gfortran"
133- stack_push dependency_path " none" ` ./build $package --default --query-path ` ` ./build gcc --default --query-path `
133+ stack_push dependency_path " none" ` ./build.sh -P $package ` ` ./build -P gcc `
134134 else
135135 printf " yes.\n"
136136 printf " $this_script : Checking whether $executable in PATH wraps gfortran version 5.3.0 or later... "
@@ -156,15 +156,15 @@ find_or_install()
156156 # Trigger 'find_or_install gcc' and subsequent build of $package
157157 stack_push dependency_pkg " none" $package " gcc"
158158 stack_push dependency_exe " none" $executable " gfortran"
159- stack_push dependency_path " none" ` ./build $package --default --query-path ` ` ./build gcc --default --query-path `
159+ stack_push dependency_path " none" ` ./build.sh -P $package ` ` ./build.sh gcc`
160160 fi
161161 fi
162162
163163 else # $package not in PATH and not yet installed by this script
164164 # Trigger 'find_or_install gcc' and subsequent build of $package
165165 stack_push dependency_pkg " none" $package " gcc"
166166 stack_push dependency_exe " none" $executable " gfortran"
167- stack_push dependency_path " none" ` ./build $package --default --query-path ` ` ./build gcc --default --query-path `
167+ stack_push dependency_path " none" ` ./build.sh -P $package ` ` ./build.sh -P gcc `
168168 fi
169169
170170 elif [[ $package == " gcc" ]]; then
@@ -334,7 +334,7 @@ find_or_install()
334334 # Trigger 'find_or_install m4' and subsequent build of $package
335335 stack_push dependency_pkg " m4"
336336 stack_push dependency_exe " m4"
337- stack_push dependency_path ` ./build m4 --default --query-path `
337+ stack_push dependency_path ` ./build.sh -P m4 `
338338 else
339339 printf " no.\n"
340340 printf " $this_script : Using the $package executable $executable found in the PATH.\n"
@@ -357,7 +357,7 @@ find_or_install()
357357 # Trigger 'find_or_install m4' and subsequent build of $package
358358 stack_push dependency_pkg " m4"
359359 stack_push dependency_exe " m4"
360- stack_push dependency_path ` ./build m4 --default --query-path `
360+ stack_push dependency_path ` ./build.sh -P m4 `
361361 fi
362362
363363 elif [[ $package == " m4" ]]; then
@@ -386,7 +386,7 @@ find_or_install()
386386
387387 elif [[ " $package_in_path " == " true" ]]; then
388388 printf " $this_script : Checking whether $package executable $executable in PATH is version < $minimum_version ... "
389- if ! ./check_version.sh $package ` ./build $package --default --query-version ` ; then
389+ if ! ./check_version.sh $package ` ./build.sh -V $package ` ; then
390390 printf " yes.\n"
391391 export M4=" $package_install_path /bin/m4"
392392 # Halt the recursion and signal that there are no prerequisites to build
@@ -512,8 +512,8 @@ find_or_install()
512512 fi
513513
514514 printf " $this_script : Downloading, building, and installing $package \n"
515- echo " $this_script : Build command: FC=$FC CC=$CC CXX=$CXX ./build $package --default $package_install_path $num_threads "
516- FC=" $FC " CC=" $CC " CXX=" $CXX " ./build " $package " --default " $package_install_path " " $num_threads "
515+ echo " $this_script : Build command: FC=$FC CC=$CC CXX=$CXX ./build -p $package -i $package_install_path -j $num_threads "
516+ FC=" $FC " CC=" $CC " CXX=" $CXX " ./build.sh -p " $package " -i " $package_install_path " -j " $num_threads "
517517
518518 if [[ -x " $package_install_path /bin/$executable " ]]; then
519519 printf " $this_script : Installation successful.\n"
0 commit comments