From d0a61166cc593cd043e3697674d472f7aa85aae3 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Fri, 19 Feb 2010 14:42:30 -0500 Subject: [svn-r18292] Added yodconfigure feature. Tested in RSQual of Sandia. --- bin/snapshot | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bin/snapshot b/bin/snapshot index 82bf557..bb02595 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -199,6 +199,9 @@ while [ $# -gt 0 ] ; do check-vfd) CHECKVAL=check-vfd ;; + yodconfigure) + YODCONFIGURE=yes + ;; --*) OP_CONFIGURE="$OP_CONFIGURE $1" ;; @@ -284,7 +287,14 @@ fi # Setup the proper configure option (--with-zlib) to use zlib library # provide ZLIB is non-empty. ZLIB=${ZLIB:+"--with-zlib="$ZLIB} -CONFIGURE="./configure $ZLIB $OP_CONFIGURE" +if [ -n "$YODCONFIGURE" ]; then + cp configure configure.yod + bin/yodconfigure configure.yod + CONFIGURE="./configure.yod" +else + CONFIGURE="./configure" +fi +CONFIGURE="$CONFIGURE $ZLIB $OP_CONFIGURE" # Execute the requests snapshot=yes -- cgit v0.12