2006-11-03 13:33:24 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
ensureDir $out/bin
|
|
|
|
cat > $out/bin/nuke-refs <<EOF
|
|
|
|
#! $SHELL -e
|
|
|
|
for i in \$*; do
|
2009-01-29 17:48:45 +00:00
|
|
|
if test ! -L \$i -a -f \$i; then
|
2009-01-16 17:13:14 +00:00
|
|
|
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
|
2006-11-03 13:33:24 +00:00
|
|
|
done
|
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/nuke-refs
|