All pastes #13864 Raw Edit

update

public shellscript v1 · immutable
#13864 ·published 2005-06-10 01:51 UTC
rendered paste body
#!/bin/shDIR=$1shiftMAKE="jam"cvs_options="-C -P -A -d -f -R"config_options=""build_options=use_config=1extra_init=ac_prev=for ac_optiondo  # 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_optionTry \`$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}    ;;  esacdonepushd $DIR > /dev/nullecho ' 'echo Updating...cvs update $cvs_options 1>../logs/$DIR.cvs.log 2>../logs/$DIR.cvs.err$extra_initif test $use_config != 0; then  echo ' '  echo Configuring...  ./configure $config_options 1>../logs/$DIR.debug.config.log 2>../logs/$DIR.debug.config.errfiecho ' 'echo Compiling ...$MAKE $build_options 1>../logs/$DIR.debug.compile.log 2>../logs/$DIR.debug.compile.errpopd > /dev/null