Accepting request 1037935 from home:mslacken:sp

removed powershell and shebangs

OBS-URL: https://build.opensuse.org/request/show/1037935
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=51
This commit is contained in:
Egbert Eich 2022-11-26 11:34:27 +00:00 committed by Git OBS Bridge
parent 3801f20f59
commit c56bc953e5

View File

@ -167,11 +167,8 @@ done
%else
cp %{S:5} lib/spack/docs/
%endif
grep -rl '#!/bin/env ' . | xargs -i@ sed -i 's|#!/bin/env|#!/usr/bin/env|g' @
#for file in $(find . -type f); do
# -i @
#done
grep -rl '#! /usr/bin/env bash' . | xargs -i@ sed -i 's|#! /usr/bin/env bash|#!/usr/bin/bash|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' \
-e 's|$spack/var|/var/lib|g'\
@ -264,6 +261,8 @@ rm -f share/spack/setup-tutorial-env.sh
# Fix rpmlint warnings
## No need for the standalone scripts
rm -f lib/spack/external/macholib/macho_*.py
## Remove non linux stuff
rm -f bin/spack.bat bin/spack_cmd.bat bin/spack_pwsh.ps1
## Fix shebangs
#sed -i 's@#!/bin/env sh@#!/bin/bash@' var/spack/repos/builtin/packages/beast-tracer/tracer
#sed -i 's@#! /usr/bin/env bash@ #!/bin/bash@' share/spack/docker/entrypoint.bash