about summary refs log tree commit diff
path: root/pkgs/build-support/nuke-references
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-01-29 17:48:45 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-01-29 17:48:45 +0000
commit1c623126c7f7a3277918a6dbad91138380e5c4b8 (patch)
treef3add37036193ff6838032642f21cc49161f28b9 /pkgs/build-support/nuke-references
parentc584bb878a9bf394835cffc2b08ce9f24b5d4735 (diff)
* Use the sh from klibc in the bootstrap. It's a lot smaller than
  bash.  Also, use the cpio from klibc instead of tar.

svn path=/nixpkgs/branches/stdenv-updates/; revision=13905
Diffstat (limited to 'pkgs/build-support/nuke-references')
-rw-r--r--pkgs/build-support/nuke-references/builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/nuke-references/builder.sh b/pkgs/build-support/nuke-references/builder.sh
index a08dfa2bd9449..429a5a8dee4ed 100644
--- a/pkgs/build-support/nuke-references/builder.sh
+++ b/pkgs/build-support/nuke-references/builder.sh
@@ -4,7 +4,7 @@ ensureDir $out/bin
 cat > $out/bin/nuke-refs <<EOF
 #! $SHELL -e
 for i in \$*; do
-    if ! test -L \$i; then
+    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