Skip to content

Commit bf35a25

Browse files
committed
Make remove_path more robust
1 parent ca4944f commit bf35a25

3 files changed

Lines changed: 1 addition & 6 deletions

File tree

toolchain/scripts/stage3/install_scalapack.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ EOF
126126
export SCALAPACK_ROOT="${pkg_install_dir}"
127127
export SCALAPACK_LDFLAGS="${SCALAPACK_LDFLAGS}"
128128
export SCALAPACK_LIBS="${SCALAPACK_LIBS}"
129-
export SCALAPACK_ROOT="${pkg_install_dir}"
130129
export CP_DFLAGS="\${CP_DFLAGS} IF_MPI(-D__SCALAPACK|)"
131130
export CP_LDFLAGS="\${CP_LDFLAGS} IF_MPI(${SCALAPACK_LDFLAGS}|)"
132131
export CP_LIBS="IF_MPI(-lscalapack|) \${CP_LIBS}"

toolchain/scripts/stage4/install_cereal.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@ if [ "$with_cereal" != "__DONTUSE__" ]; then
114114
cat << EOF > "${BUILDDIR}/setup_cereal"
115115
prepend_path CPATH "${pkg_install_dir}/include"
116116
prepend_path CMAKE_PREFIX_PATH "${pkg_install_dir}"
117-
EOF
118-
else
119-
cat << EOF > "${BUILDDIR}/setup_cereal"
120-
export CEREAL_ROOT="${pkg_install_dir}"
121117
EOF
122118
fi
123119
cat "${BUILDDIR}/setup_cereal" >> $SETUPFILE

toolchain/scripts/tool_kit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ remove_path() {
743743
__path=${__path//:$__directory:/:}
744744
__path=${__path#$__directory:}
745745
__path=${__path%:$__directory}
746-
__path=$(echo "$__path" | sed "s:^$__directory\$::g")
746+
__path=$(echo "$__path" | sed "s#^$__directory\$##g")
747747
eval $__path_name=\"$__path\"
748748
export $__path_name
749749
}

0 commit comments

Comments
 (0)