Skip to content

Commit bd7baf3

Browse files
committed
scripts: don't put "fi fi fi" on the same line
sh (not bash) doesn't like it Refs #675 Signed-off-by: Brice Goglin <[email protected]> (cherry picked from commit a3b64d5)
1 parent cfcf832 commit bd7baf3

File tree

4 files changed

+25
-10
lines changed

4 files changed

+25
-10
lines changed

config/hwloc.m4

+14-6
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,9 @@ return 0;
10521052
AC_MSG_NOTICE([using default CUDA install path /usr/local/cuda ...])
10531053
HWLOC_CUDA_COMMON_LDFLAGS="-L/usr/local/cuda/lib64/ -L/usr/local/cuda/lib64/stubs/"
10541054
HWLOC_CUDA_COMMON_CPPFLAGS="-I/usr/local/cuda/include/"
1055-
fi fi fi
1055+
fi
1056+
fi
1057+
fi
10561058
10571059
AC_MSG_NOTICE([common CUDA/OpenCL/NVML CPPFLAGS: $HWLOC_CUDA_COMMON_CPPFLAGS])
10581060
AC_MSG_NOTICE([common CUDA/OpenCL/NVML LDFLAGS: $HWLOC_CUDA_COMMON_LDFLAGS])
@@ -1276,7 +1278,9 @@ char nvmlInit ();
12761278
AC_MSG_NOTICE([using standard ROCm install path $rocm_dir ...])
12771279
else
12781280
AC_MSG_NOTICE([assuming ROCm is installed in standard directories ...])
1279-
fi fi fi
1281+
fi
1282+
fi
1283+
fi
12801284
if test "x$rocm_dir" != x; then
12811285
if test -d "$rocm_dir/include/rocm_smi"; then
12821286
HWLOC_RSMI_CPPFLAGS="-I$rocm_dir/include/"
@@ -1604,7 +1608,8 @@ return clGetDeviceIDs(0, 0, 0, NULL, NULL);
16041608
requested_plugins=`echo $enable_plugins | sed -e 's/,/ /g'`
16051609
else
16061610
hwloc_have_plugins=no
1607-
fi fi
1611+
fi
1612+
fi
16081613
AC_MSG_RESULT($hwloc_have_plugins)
16091614
16101615
if test "x$hwloc_have_plugins" = xyes; then
@@ -1617,7 +1622,8 @@ return clGetDeviceIDs(0, 0, 0, NULL, NULL);
16171622
else if test "x$hwloc_windows" = "xyes"; then
16181623
AC_MSG_WARN([dlopen not supported on non-native Windows build, disabled by default.])
16191624
enable_plugin_dlopen=no
1620-
fi fi
1625+
fi
1626+
fi
16211627
fi
16221628
if test "x$enable_plugin_ltdl" = x; then
16231629
if test "x$hwloc_aix" = "xyes"; then
@@ -1626,7 +1632,8 @@ return clGetDeviceIDs(0, 0, 0, NULL, NULL);
16261632
else if test "x$hwloc_windows" = "xyes"; then
16271633
AC_MSG_WARN([ltdl not supported on non-native Windows build, disabled by default.])
16281634
enable_plugin_dlopen=no
1629-
fi fi
1635+
fi
1636+
fi
16301637
fi
16311638
16321639
# Look for dlopen
@@ -1659,7 +1666,8 @@ return clGetDeviceIDs(0, 0, 0, NULL, NULL);
16591666
AC_MSG_RESULT([none])
16601667
AC_MSG_WARN([Plugin support requested, but could not enable dlopen or ltdl])
16611668
AC_MSG_ERROR([Cannot continue])
1662-
fi fi
1669+
fi
1670+
fi
16631671
16641672
AC_DEFINE([HWLOC_HAVE_PLUGINS], 1, [Define to 1 if the hwloc library should support dynamically-loaded plugins])
16651673
fi

contrib/dist/publish_doc

+7-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ else if test -d "$dst/$EXAMPLE/"; then
2424
else
2525
echo "ERROR: Cannot find doc subdirectory in destination path."
2626
exit 1
27-
fi fi fi fi
27+
fi
28+
fi
29+
fi
30+
fi
2831
echo "Will copy documentation to $dst"
2932

3033
while test `pwd` != /; do
@@ -52,7 +55,9 @@ else if ! test -e doc/doxygen-doc/hwloc-letter.pdf; then
5255
else if ! test -d doc/www.open-mpi.org/html/; then
5356
echo "ERROR: doc/www.open-mpi.org/html/ not found."
5457
exit 1
55-
fi fi fi
58+
fi
59+
fi
60+
fi
5661

5762
echo "Installing hwloc-v${VERSION}-a4.pdf ..."
5863
cp -f doc/doxygen-doc/hwloc-a4.pdf "$dst/hwloc-v${VERSION}-a4.pdf"

tests/hwloc/xml/test-topology.sh.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ else if test "$filename" = "${basename}.output"; then
144144
else
145145
echo "Filename must end with either .xml or .output"
146146
exit 1
147-
fi fi
147+
fi
148+
fi
148149

149150
rm -rf "$tmp"

utils/hwloc/hwloc-gather-topology.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ if ! test -d "$destdir/$basename/var/run/hwloc"; then
285285
ln -sr "$destdir/$basename/var/run/hwloc.HWLOC_DUMPED_HWDATA_DIR" "$destdir/$basename/var/run/hwloc"
286286
else if test -e "$destdir/$basename/$runstatedir/hwloc"; then
287287
ln -sr "$destdir/$basename/var/run/hwloc.runstatedir" "$destdir/$basename/var/run/hwloc"
288-
fi fi
288+
fi
289+
fi
289290
fi
290291

291292
# Gather cgroup/cpuset mntpnts

0 commit comments

Comments
 (0)