Accepting request 1057874 from home:eeich:branches:network:cluster

- Some more fixes to make the switch from /var/lib/spack/repo
  to /usr/share/spack/repo work.

OBS-URL: https://build.opensuse.org/request/show/1057874
OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=56
This commit is contained in:
Egbert Eich 2023-01-11 23:27:26 +00:00 committed by Git OBS Bridge
parent 7bbbed556d
commit 8a571f8738

View File

@ -231,14 +231,15 @@ cd -
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 '/var/spack/repos' | grep -v "cmd/list.py" | \
xargs -i@ sed -i 's|/var/spack/repos|/usr/share/spack/repos|g' @
grep -rl "spack/" . | xargs -i@ sed -i \
-e 's|$spack/opt|/opt|g' \
-e 's|$spack/var|/var/lib|g'\
-e 's|$spack/usr|/usr|g'\
-e 's|$spack/share/spack/lmod|/opt/spack/modules|g'\
-e 's|$spack/share/spack/modules|/opt/spack/modules|g'\
@
grep -rl '/var/spack/repos' | grep -v "cmd/list.py" | \
xargs -i@ sed -i 's|/var/spack/repos|/usr/share/spack/repos|g' @
%install
# combine READMEs