6 APP_DIR
=`cd $APP_DIR;pwd`; export APP_DIR
13 PLATFORM
=`uname -s`-$ARCH
18 --debug) shift ; DEBUGGER
=gdb
;;
21 if [ ! -d $APP_DIR/src
] ; then
22 echo "ERROR from $0:" >&2
23 echo "Cannot compile - source code is missing!" >&2
26 echo "Compiling $APP_DIR... please wait..." >&2
27 if [ ! -x "$APP_DIR/src/configure" ]; then
28 echo "No 'configure' script! Trying to run autoconf..."
29 (cd $APP_DIR/src
; autoconf
)
31 rm -f $APP_DIR/src
/config.cache
32 cd $APP_DIR/src
&& .
/configure
--enable-rox \
33 --bindir=$APP_DIR/$PLATFORM \
35 && make clean
&& make && echo Done
>&2 && exit 0
36 echo Compile failed
>&2
37 echo Press Return...
>&2
42 BIN
=$APP_DIR/$PLATFORM/$PROG
45 exec $DEBUGGER $BIN "$@"
47 echo "ERROR from $0:" >&2
48 echo "I cannot find an executable file for your host type ($PLATFORM)." >&2
49 echo "Trying to compile..." >&2
50 if [ -n "$DISPLAY" ]; then