3 # $Id: do.sh,v 1.19 2007/02/06 23:25:34 gumpu Exp $
5 # If a ./do.sh under cygwin gives
8 # : command not foundclocal
10 # Then this file has wrong line-endings (cr/lf).
11 # To fix it unzip the archive under cygwin with the
13 # unzip -a robodoc-xx-xx-xx.zip
19 rm -f *.log aclocal.m4 config.cache
23 rm -f missing makefile
24 rm -f configure config.status
29 #CFLAGS="-g -Wall -DDMALLOC -DMALLOC_FUNC_CHECK" LDFLAGS="-ldmalloc" ./configure
30 #CFLAGS="-g -Wall -Wshadow -Wbad-function-cast -Wconversion -Wredundant-decls" ./configure
31 CFLAGS="-g -Wall" ./configure
37 # cross-compile if all tools are found
38 (cd Source && make -f makefile.plain xcompiler-test) > /dev/null 2>&1
39 if [ "$?" = "0" ] ; then
42 cp -R ./Source ./tmp$$
44 make -f makefile.plain xcompile
53 if [ "`uname`" = "Darwin" ] ; then