nuke-refs: Don't assume /nix/store
svn path=/nixpkgs/trunk/; revision=30090
This commit is contained in:
parent
819198fba0
commit
9afc1f6a24
@ -5,7 +5,7 @@ cat > $out/bin/nuke-refs <<EOF
|
||||
#! $SHELL -e
|
||||
for i in \$*; do
|
||||
if test ! -L \$i -a -f \$i; then
|
||||
cat \$i | sed "s|/nix/store/[a-z0-9]*-|/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" > \$i.tmp
|
||||
cat \$i | sed "s|$NIX_STORE/[a-z0-9]*-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" > \$i.tmp
|
||||
if test -x \$i; then chmod +x \$i.tmp; fi
|
||||
mv \$i.tmp \$i
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user