check for presence of Makefile.in when trying to recreate it automatically with autogen.sh

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37782 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-02-24 21:52:08 +00:00
parent f6e7fbefce
commit 823397bc80

View File

@ -428,7 +428,7 @@ if [ ! -f "${LyxSourceDir}"/configure -o "${LyxSourceDir}"/configure -ot "${LyxS
else
find "${LyxSourceDir}" -name Makefile.am -print | while read file ; do
dname=`dirname "$file"`
if [ "$dname/Makefile.in" -ot "$file" ]; then
if [ -f "$dname/Makefile.in" -a "$dname/Makefile.in" -ot "$file" ]; then
( cd "${LyxSourceDir}" && sh autogen.sh )
break
fi