texlive: fixed erroneous forwarder scripts
- Generate a forwarder scripts only for executable files. This change removes the broken 'man' script, for example. - Run the real binaries with 'exec'. - Use $SHELL to interpret the forwarder scripts rather than /bin/sh. - Indent consistently with blanks. - Removed some debug output from the build expression. svn path=/nixpkgs/trunk/; revision=27679
This commit is contained in:
parent
f92f3deed8
commit
758e85cfac
@ -12,20 +12,20 @@ rec {
|
||||
echo Symlinking "$currentPath"
|
||||
find $currentPath/share/info $currentPath/share/man $(echo $currentPath/texmf*/) ! -type d | while read; do
|
||||
REPLY="''${REPLY#$currentPath}"
|
||||
ensureDir $out/"$(dirname "$REPLY")"
|
||||
ln -fs $currentPath/"$REPLY" $out/"$REPLY"
|
||||
echo
|
||||
ensureDir $out/"$(dirname "$REPLY")"
|
||||
ln -fs $currentPath/"$REPLY" $out/"$REPLY"
|
||||
echo
|
||||
done | while read; do head -n 99 >/dev/null; echo -n .; done
|
||||
|
||||
for i in $currentPath/bin/* :; do #*/
|
||||
test "$i" = : && continue;
|
||||
echo -ne "#! /bin/sh\\n$i \"\$@\"" > "$out/bin/$(basename "$i")" && \
|
||||
for i in "$currentPath/bin/"* :; do
|
||||
test "$i" != : || continue
|
||||
echo -ne "#! $SHELL\\nexec $i \"\$@\"" > "$out/bin/$(basename "$i")" && \
|
||||
chmod a+x "$out/bin/$(basename "$i")"
|
||||
done
|
||||
|
||||
echo
|
||||
echo
|
||||
|
||||
cp -Trfp $currentPath/libexec $out/libexec || true
|
||||
cp -Trfp $currentPath/libexec $out/libexec || true
|
||||
done
|
||||
|
||||
ln -s $out/texmf* $out/share/
|
||||
@ -39,8 +39,8 @@ rec {
|
||||
for i in $out/libexec/*/* :; do
|
||||
test "$i" = : && continue;
|
||||
test -f "$i" && \
|
||||
test -x "$i" && \
|
||||
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i) && \
|
||||
test -x "$i" && \
|
||||
echo -ne "#! $SHELL\\nexec $i \"\$@\"" >$out/bin/$(basename $i) && \
|
||||
chmod a+x $out/bin/$(basename $i)
|
||||
done
|
||||
|
||||
|
@ -47,7 +47,8 @@ rec {
|
||||
mv $out/bin $out/libexec
|
||||
ensureDir $out/bin
|
||||
for i in "$out/libexec/"*"/"*; do
|
||||
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i)
|
||||
test \( \! -d "$i" \) -a -x "$i" || continue
|
||||
echo -ne "#! $SHELL\\nexec $i \"\$@\"" >$out/bin/$(basename $i)
|
||||
chmod a+x $out/bin/$(basename $i)
|
||||
done
|
||||
[ -d $out/texmf-config ] || ln -s $out/texmf $out/texmf-config
|
||||
@ -85,9 +86,7 @@ rec {
|
||||
"--enable-ipc" "--with-mktexfmt"
|
||||
];
|
||||
|
||||
phaseNames = ["addInputs" (doDump "0") "doMainBuild"
|
||||
(doDump "1")
|
||||
"doMakeInstall" "doPostInstall"];
|
||||
phaseNames = ["addInputs" "doMainBuild" "doMakeInstall" "doPostInstall"];
|
||||
|
||||
name = "texlive-core-2009";
|
||||
meta = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user