mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 03:15:56 +03:00
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
15 lines
360 B
Bash
15 lines
360 B
Bash
source $stdenv/setup
|
|
|
|
mkdir -p $out/bin
|
|
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
|
|
if test -x \$i; then chmod +x \$i.tmp; fi
|
|
mv \$i.tmp \$i
|
|
fi
|
|
done
|
|
EOF
|
|
chmod +x $out/bin/nuke-refs
|