#!/bin/sh DIR=$1 shift MAKE="jam" cvs_options="-C -P -A -d -f -R" config_options="" build_options= use_config=1 extra_init= ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_option in --use-jam | --jam | -j) MAKE="jam" ;; --use-make | --make | -m) MAKE="make" ;; --build-options=*) build_options=$ac_optarg ;; --configure-options=*) config_options=$ac_optarg ;; --cvs-options=*) cvs_options=$ac_optarg ;; --use-config) use_config=1 ;; --no-config) use_config=0 ;; --extra-init=*) extra_init=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` eval "$ac_envvar='$ac_optarg'" export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done pushd $DIR > /dev/null echo ' ' echo Updating... cvs update $cvs_options 1>../logs/$DIR.cvs.log 2>../logs/$DIR.cvs.err $extra_init if test $use_config != 0; then echo ' ' echo Configuring... ./configure $config_options 1>../logs/$DIR.debug.config.log 2>../logs/$DIR.debug.config.err fi echo ' ' echo Compiling ... $MAKE $build_options 1>../logs/$DIR.debug.compile.log 2>../logs/$DIR.debug.compile.err popd > /dev/null