Accepting request 1040235 from home:mslacken:sp

env stuff fixed

OBS-URL: https://build.opensuse.org/request/show/1040235
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=52
This commit is contained in:
Christian Goll 2022-12-05 11:17:15 +00:00 committed by Git OBS Bridge
parent c56bc953e5
commit 0559024238

View File

@ -168,6 +168,7 @@ done
cp %{S:5} lib/spack/docs/
%endif
grep -rl '#! /usr/bin/env bash' . | xargs -i@ sed -i 's|#! /usr/bin/env bash|#!/usr/bin/bash|g' @
grep -rl '#!/bin/env sh' . | xargs -i@ sed -i 's|#!/bin/env sh|#!/usr/bin/sh|g' @
grep -rl '#!/usr/bin/env bash' . | xargs -i@ sed -i 's|#!/usr/bin/env bash|#!/usr/bin/bash|g' @
grep -rl "spack/" . | xargs -i@ sed -i \
-e 's|$spack/opt|/opt|g' \
@ -250,6 +251,8 @@ rm -rf var/spack/repos/builtin.mock var/spack/gpg.mock var/spack/mock_configs
rm -rf lib/spack/external/ruamel/yaml/.ruamel
find . -type f -name .gitignore -delete
find . -type f -name .nojekyll -delete
find . -type f -name .gitlab-ci.yml -delete
# Fix _spack_root link
rm -f lib/spack/docs/_spack_root
ln -sf ../.. lib/spack/docs/_spack_root