forked from mirrors/nixpkgs
texlive Aggregate:
- Add bouncer to binaries stored in /bin directory. - Avoid manipulation of patterns as a match. svn path=/nixpkgs/trunk/; revision=26862
This commit is contained in:
parent
d53592905e
commit
0069aa0637
|
@ -7,6 +7,7 @@ rec {
|
||||||
|
|
||||||
doAggregate = fullDepEntry (''
|
doAggregate = fullDepEntry (''
|
||||||
|
|
||||||
|
ensureDir $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
|
||||||
|
@ -15,6 +16,13 @@ rec {
|
||||||
ln -fs $currentPath/"$REPLY" $out/"$REPLY"
|
ln -fs $currentPath/"$REPLY" $out/"$REPLY"
|
||||||
echo
|
echo
|
||||||
done | while read; do head -n 99 >/dev/null; echo -n .; done
|
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")" && \
|
||||||
|
chmod a+x "$out/bin/$(basename "$i")"
|
||||||
|
done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
cp -Trfp $currentPath/libexec $out/libexec || true
|
cp -Trfp $currentPath/libexec $out/libexec || true
|
||||||
|
@ -28,8 +36,8 @@ rec {
|
||||||
ensureDir $out/texmf-config/"$REPLY"
|
ensureDir $out/texmf-config/"$REPLY"
|
||||||
done
|
done
|
||||||
|
|
||||||
ensureDir $out/bin
|
for i in $out/libexec/*/* :; do
|
||||||
for i in $out/libexec/*/*; do
|
test "$i" = : && continue;
|
||||||
test -f "$i" && \
|
test -f "$i" && \
|
||||||
test -x "$i" && \
|
test -x "$i" && \
|
||||||
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i) && \
|
echo -ne "#! /bin/sh\\n$i \"\$@\"" >$out/bin/$(basename $i) && \
|
||||||
|
|
Loading…
Reference in a new issue