caam

changeset 10:a56791ad41af

-S option for suspend between configure and make
author HIROSE Yuuji <yuuji@gentei.org>
date Mon, 10 Jun 2013 10:23:51 +0900
parents 5a24206e0438
children f347f46b710e
files bin/caam
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/bin/caam	Sun May 08 11:16:20 2011 +0900
     1.2 +++ b/bin/caam	Mon Jun 10 10:23:51 2013 +0900
     1.3 @@ -54,6 +54,7 @@
     1.4  DPF="$CONFDIR/caam.dirs"
     1.5  WRAPDIR=$mytop/wrap
     1.6  [ "$CAAM_DEBUG" ] && echo wrapdir=$WRAPDIR
     1.7 +SUSPEND=:
     1.8  
     1.9  # Parse my own arguments
    1.10  while [ x"" != x"$1" ]; do
    1.11 @@ -72,6 +73,7 @@
    1.12      -c)		DO="echo done";;
    1.13      -g)		CAAM_MAKE=gmake ;;
    1.14      -s)		shift; CAAM_MAKE="sleep $1; $CAAM_MAKE" ;;
    1.15 +    -S)		SUSPEND=suspend ;;
    1.16      -d)		debug=1 ;;
    1.17      *)		break ;;
    1.18    esac
    1.19 @@ -148,6 +150,11 @@
    1.20    CAAM_LDF=$ldf; export CAAM_LDF
    1.21  fi
    1.22  
    1.23 +suspend() {
    1.24 +  echo "Suspending caam.  Type 'fg' to make caam work again."
    1.25 +  kill -STOP $$
    1.26 +}
    1.27 +
    1.28  successlog() {
    1.29   status=$?
    1.30   (PWD=`pwd`				  # for compatibility
    1.31 @@ -186,4 +193,4 @@
    1.32  LD_LIBRARY_PATH="$lp" \
    1.33  CAAM_GCC=$CAAM_GCC \
    1.34  CAAM_CXX=$CAAM_CXX \
    1.35 -sh -c "$CAAM_CFG $* && $DO" && successlog
    1.36 +sh -c "$CAAM_CFG $* && $SUSPEND && $DO" && successlog