nixpkgs/pkgs/stdenv/nix-linux-static/scripts/add-symlink.sh
Armijn Hemel 505a857e55 don't match a trailing slash
svn path=/nixpkgs/branches/nixos-pkgs/; revision=1838
2004-12-06 19:00:06 +00:00

9 lines
451 B
Bash

$extra2/bin/chmod u+w $out/include
(cd $out/include && $extra2/bin/ln -s $extra/include/* .) || exit 1
cd $out
$extra3/bin/find . -not -type l -exec $extra2/bin/chmod u+w {} \;
$extra3/bin/find . -exec $patchelf --interpreter $out/lib/ld-linux.so.2 --shrink-rpath {} \; || true
$extra2/bin/cat ./bin/catchsegv | $extra4/bin/sed "s|/nix/store/[a-z0-9]*-glibc|$out|g" > ./bin/catchsegv
$extra3/bin/find . -not -type l -exec $extra2/bin/chmod u-w {} \;