texlive.combine: remove redundant call to realpath when copying epstopdf

This commit is contained in:
Vincenzo Mantova 2022-12-18 13:53:23 +00:00
parent 1d37fc5426
commit 24d0b421f9

View file

@ -246,9 +246,9 @@ in (buildEnv {
# * Copy is done to have a correct "$0" so that epstopdf enables the restricted mode
# * ./bin/repstopdf needs to be a symlink to be processed by wrapBin
''
if [[ -e ./bin/epstopdf ]]; then
cp $(realpath ./bin/epstopdf) ./share/texmf/scripts/repstopdf
ln -s "$out"/share/texmf/scripts/repstopdf ./bin/repstopdf
if [[ -e "$out"/bin/epstopdf ]]; then
cp "$out"/bin/epstopdf "$out"/share/texmf/scripts/repstopdf
ln -s "$out"/share/texmf/scripts/repstopdf "$out"/bin/repstopdf
fi
'' +
# finish up the wrappers