2006-11-03 14:33:24 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2006-11-03 14:33:24 +01:00
|
|
|
cat > $out/bin/nuke-refs <<EOF
|
|
|
|
#! $SHELL -e
|
|
|
|
for i in \$*; do
|
2009-01-29 18:48:45 +01:00
|
|
|
if test ! -L \$i -a -f \$i; then
|
2011-10-28 23:23:40 +02:00
|
|
|
cat \$i | sed "s|$NIX_STORE/[a-z0-9]*-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" > \$i.tmp
|
2009-01-16 18:13:14 +01:00
|
|
|
if test -x \$i; then chmod +x \$i.tmp; fi
|
|
|
|
mv \$i.tmp \$i
|
|
|
|
fi
|
2006-11-03 14:33:24 +01:00
|
|
|
done
|
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/nuke-refs
|