mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
* Ignore symlinks.
svn path=/nixpkgs/branches/stdenv-updates/; revision=13790
This commit is contained in:
parent
2f88c471d4
commit
60ac36f9c5
|
@ -4,9 +4,11 @@ ensureDir $out/bin
|
|||
cat > $out/bin/nuke-refs <<EOF
|
||||
#! $SHELL -e
|
||||
for i in \$*; do
|
||||
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
|
||||
if ! test -L \$i; then
|
||||
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
|
||||
done
|
||||
EOF
|
||||
chmod +x $out/bin/nuke-refs
|
||||
|
|
Loading…
Reference in a new issue