From 5f3c1f22ce79d05e4090bb02d5eb8a044a3457f7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 21 Feb 2005 20:40:51 +0000 Subject: [PATCH] * Forgotten. svn path=/nixpkgs/trunk/; revision=2262 --- pkgs/stdenv/nix-linux-static/scripts/fix-outpath.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pkgs/stdenv/nix-linux-static/scripts/fix-outpath.sh diff --git a/pkgs/stdenv/nix-linux-static/scripts/fix-outpath.sh b/pkgs/stdenv/nix-linux-static/scripts/fix-outpath.sh new file mode 100644 index 000000000000..be0df6b07795 --- /dev/null +++ b/pkgs/stdenv/nix-linux-static/scripts/fix-outpath.sh @@ -0,0 +1,9 @@ +cd $out + +chmod -R +w . + +find . -type f | while read fn; do + $extra2/bin/cat $fn | $extra4/bin/sed "s|/nix/store/[a-z0-9]*-|/nix/store/ffffffffffffffffffffffffffffffff-|g" > $fn.tmp + if test -x $fn; then chmod +x $fn.tmp; fi + mv $fn.tmp $fn +done