@@ -40,7 +40,7 @@ find_or_install()
40
40
package_in_path=false
41
41
fi
42
42
43
- package_install_path=` ./build $package --default --query-path `
43
+ package_install_path=` ./build.sh -P $package `
44
44
45
45
printf " $this_script : Checking whether $executable is in the directory in which $this_script \n"
46
46
printf " installs it by default and whether the user has executable permission for it..."
@@ -53,7 +53,7 @@ find_or_install()
53
53
printf " no.\n"
54
54
fi
55
55
56
- minimum_version=` ./build $package --default --query-version `
56
+ minimum_version=` ./build.sh -V $package `
57
57
58
58
if [[ " $package " == " cmake" ]]; then
59
59
@@ -76,12 +76,12 @@ find_or_install()
76
76
elif [[ " $package_in_path " == " true" ]]; then
77
77
printf " $this_script : Checking whether $package in PATH is version < $minimum_version ... "
78
78
79
- if ! ./check_version.sh $package ` ./build $package --default --query-version ` ; then
79
+ if ! ./check_version.sh $package ` ./build.sh -V $package ` ; then
80
80
printf " yes.\n"
81
81
# Here we place $package on the dependency stack to trigger the build of the above file:
82
82
stack_push dependency_pkg $package " none"
83
83
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"
85
85
86
86
else
87
87
printf " no.\n"
@@ -96,7 +96,7 @@ find_or_install()
96
96
else # Build package ($package has no prerequisites)
97
97
stack_push dependency_pkg $package " none"
98
98
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"
100
100
fi
101
101
102
102
elif [[ $package == " mpich" ]]; then
@@ -130,7 +130,7 @@ find_or_install()
130
130
# Trigger 'find_or_install gcc' and subsequent build of $package
131
131
stack_push dependency_pkg " none" $package " gcc"
132
132
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 `
134
134
else
135
135
printf " yes.\n"
136
136
printf " $this_script : Checking whether $executable in PATH wraps gfortran version 5.3.0 or later... "
@@ -156,15 +156,15 @@ find_or_install()
156
156
# Trigger 'find_or_install gcc' and subsequent build of $package
157
157
stack_push dependency_pkg " none" $package " gcc"
158
158
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`
160
160
fi
161
161
fi
162
162
163
163
else # $package not in PATH and not yet installed by this script
164
164
# Trigger 'find_or_install gcc' and subsequent build of $package
165
165
stack_push dependency_pkg " none" $package " gcc"
166
166
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 `
168
168
fi
169
169
170
170
elif [[ $package == " gcc" ]]; then
@@ -334,7 +334,7 @@ find_or_install()
334
334
# Trigger 'find_or_install m4' and subsequent build of $package
335
335
stack_push dependency_pkg " m4"
336
336
stack_push dependency_exe " m4"
337
- stack_push dependency_path ` ./build m4 --default --query-path `
337
+ stack_push dependency_path ` ./build.sh -P m4 `
338
338
else
339
339
printf " no.\n"
340
340
printf " $this_script : Using the $package executable $executable found in the PATH.\n"
@@ -357,7 +357,7 @@ find_or_install()
357
357
# Trigger 'find_or_install m4' and subsequent build of $package
358
358
stack_push dependency_pkg " m4"
359
359
stack_push dependency_exe " m4"
360
- stack_push dependency_path ` ./build m4 --default --query-path `
360
+ stack_push dependency_path ` ./build.sh -P m4 `
361
361
fi
362
362
363
363
elif [[ $package == " m4" ]]; then
@@ -386,7 +386,7 @@ find_or_install()
386
386
387
387
elif [[ " $package_in_path " == " true" ]]; then
388
388
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
390
390
printf " yes.\n"
391
391
export M4=" $package_install_path /bin/m4"
392
392
# Halt the recursion and signal that there are no prerequisites to build
@@ -512,8 +512,8 @@ find_or_install()
512
512
fi
513
513
514
514
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 "
517
517
518
518
if [[ -x " $package_install_path /bin/$executable " ]]; then
519
519
printf " $this_script : Installation successful.\n"
0 commit comments