6 APP_DIR
=`cd $APP_DIR;pwd`; export APP_DIR
8 PLATFORM
=`uname -s`-`uname -m`
12 --debug) shift ; DEBUGGER
=gdb
;;
14 if [ ! -d $APP_DIR/src
] ; then
15 echo "ERROR from $0:" >&2
16 echo "Cannot compile - source code is missing!" >&2
19 echo "Compiling $APP_DIR... please wait..." >&2
20 rm -f $APP_DIR/src
/config.cache
21 cd $APP_DIR/src
&& .
/configure
--bindir=$APP_DIR/$PLATFORM \
22 && make clean
&& make && echo Done
>&2 && exit 0
23 echo Compile failed
>&2
27 BIN
=$APP_DIR/$PLATFORM/$PROG
30 exec $DEBUGGER $BIN "$@"
32 echo "ERROR from $0:" >&2
33 echo "I cannot find an executable file for your host type ($PLATFORM)." >&2
34 echo "Try using the --compile option." >&2