diff --git a/spack.spec b/spack.spec index 960a1c7..c037ee9 100644 --- a/spack.spec +++ b/spack.spec @@ -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