Various other build fixes --- configure | 4 ++-- scripts/update-src-files.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) Index: cygwin-doc/configure =================================================================== --- cygwin-doc.orig/configure +++ cygwin-doc/configure @@ -11,7 +11,7 @@ if [ -d "$srcdir/src" ]; then else echo -n "configure: looking for parallel cygwin build directory... " for f in ../cygwin-[^.]*.[^.]*.[^.*]-*[0-9]; do - cygwin_build="$f" + [ -d "$f" ] && cygwin_build="$f" done [ -z "$cygwin_build" ] && { echo; echo "configure: couldn't find a cygwin build directory. Build cygwin first!" 1>&2; exit 1; } @@ -21,7 +21,7 @@ else fi echo -n 'configure: finding relevant catalog file... ' -soc=$(find /usr/share/sgml/[Oo]pen[Ss]p* -name xml.soc) +soc=$(find /usr/share/sgml/[Oo]pen[Ss][Pp]* -name xml.soc) [ -z "$soc" ] && { echo; echo "configure: couldn't find a catalog file 'xml.soc'. Can't continue" 1>&2; exit 1; } echo "$soc" Index: cygwin-doc/scripts/update-src-files.sh =================================================================== --- cygwin-doc.orig/scripts/update-src-files.sh +++ cygwin-doc/scripts/update-src-files.sh @@ -23,7 +23,7 @@ if [ -z "$srcdir" ]; then exit 1 fi -srcdir=$(cd "$srcdir"/..; pwd) +srcdir=$(cd $builddir/newlib; cd "$srcdir"/..; pwd) if [ -z "$srcdir" ]; then echo "couldn't find srcdir path from $srcdir/.." 1>&2 exit 1