# HG changeset patch # User HIROSE Yuuji # Date 1370827431 -32400 # Node ID a56791ad41af762a7ea473ca446816d0ddc3a91f # Parent 5a24206e043863d402868650ebf8d99bfeeddd2d -S option for suspend between configure and make diff -r 5a24206e0438 -r a56791ad41af bin/caam --- a/bin/caam Sun May 08 11:16:20 2011 +0900 +++ b/bin/caam Mon Jun 10 10:23:51 2013 +0900 @@ -54,6 +54,7 @@ DPF="$CONFDIR/caam.dirs" WRAPDIR=$mytop/wrap [ "$CAAM_DEBUG" ] && echo wrapdir=$WRAPDIR +SUSPEND=: # Parse my own arguments while [ x"" != x"$1" ]; do @@ -72,6 +73,7 @@ -c) DO="echo done";; -g) CAAM_MAKE=gmake ;; -s) shift; CAAM_MAKE="sleep $1; $CAAM_MAKE" ;; + -S) SUSPEND=suspend ;; -d) debug=1 ;; *) break ;; esac @@ -148,6 +150,11 @@ CAAM_LDF=$ldf; export CAAM_LDF fi +suspend() { + echo "Suspending caam. Type 'fg' to make caam work again." + kill -STOP $$ +} + successlog() { status=$? (PWD=`pwd` # for compatibility @@ -186,4 +193,4 @@ LD_LIBRARY_PATH="$lp" \ CAAM_GCC=$CAAM_GCC \ CAAM_CXX=$CAAM_CXX \ -sh -c "$CAAM_CFG $* && $DO" && successlog +sh -c "$CAAM_CFG $* && $SUSPEND && $DO" && successlog