Kayvan's cygwin textex patch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7705 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-09-08 00:45:38 +00:00
parent 4c6e0fe422
commit d7e913da9e
2 changed files with 23 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2003-09-07 Kayvan Sylvan <kayvan@sylvan.com>
* configure.m4 - Do an additional test in the Cygwin case to
see if the path correction is necessary. If running with newer
cygwin tetex packages, the path correction actually appears to
fail.
2003-09-05 Johnathan Burchill <jkerrb@shaw.ca>
* external_templates: Write a message to the latex log file if the

View File

@ -176,9 +176,22 @@ fi
#### Adjust PATH for Win32 (Cygwin)
case `uname -s` in
CYGWIN*)
echo "configure: cygwin detected; path correction"
srcdir=`cygpath -w "${srcdir}" | tr '\\\\' /`
echo "srcdir=${srcdir}" ;;
tmpfname="/tmp/x$$.ltx";
echo "\\documentstyle{article}" > $tmpfname
echo "\\begin{document}\\end{document}" >> $tmpfname
inpname=`cygpath -w $tmpfname | tr '\\\\' /`
echo "\\input{$inpname}" > wrap_temp$$.ltx
check_err=`latex wrap_temp$$.ltx 2>&1 < /dev/null | grep Error`
rm -f wrap_temp$$.* /tmp/x$$.*
if [ x"$check_err" = "x" ]
then
echo "configure: cygwin detected; path correction"
srcdir=`cygpath -w "${srcdir}" | tr '\\\\' /`
echo "srcdir=${srcdir}"
else
echo "configure: cygwin detected; path correction is not needed"
fi
;;
esac
#### Create the build directories if necessary