Make TeXLive-linkdir skip not try to wrap directories in libexec

svn path=/nixpkgs/trunk/; revision=23429
This commit is contained in:
Michael Raskin 2010-08-25 19:31:23 +00:00
parent 9fa88c5291
commit 9570117dc4

View File

@ -30,7 +30,9 @@ rec {
ensureDir $out/bin
for i in $out/libexec/*/*; do
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i)
test -f "$i" && \
test -x "$i" && \
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i) && \
chmod a+x $out/bin/$(basename $i)
done