texLive-linkdir: work around a failure

It often failed since 3c6efec2c0, i.e. #4453.
Now it should "work" the same as before.

CC @7c6f434c, maybe?
This commit is contained in:
Vladimír Čunát 2014-10-18 13:50:19 +02:00
parent 09dc132e04
commit b5ea865f35

View File

@ -9,13 +9,15 @@ rec {
phaseNames = [ "doAggregate" ]; phaseNames = [ "doAggregate" ];
doAggregate = fullDepEntry ('' doAggregate = fullDepEntry (''
set +o pipefail
mkdir -p $out/bin mkdir -p $out/bin
for currentPath in ${lib.concatStringsSep " " buildInputs}; do for currentPath in ${lib.concatStringsSep " " buildInputs}; do
echo Symlinking "$currentPath" echo Symlinking "$currentPath"
find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*/) -type d | while read; do find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*/) -type d | while read; do
REPLY="''${REPLY#$currentPath}" REPLY="''${REPLY#$currentPath}"
mkdir -p $out/"$REPLY" mkdir -p $out/"$REPLY"
done done
find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*/) ! -type d | while read; do find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*/) ! -type d | while read; do
REPLY="''${REPLY#$currentPath}" REPLY="''${REPLY#$currentPath}"
ln -fs $currentPath/"$REPLY" $out/"$REPLY" ln -fs $currentPath/"$REPLY" $out/"$REPLY"