From: Mark Huang Date: Wed, 4 May 2005 21:47:29 +0000 (+0000) Subject: - actually, just support a "-f" option to use an alternate build Makefile X-Git-Tag: planetlab-3_1-branch-point~5 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0834c97897770e35a69809b0e9e3f5815dbc1d24;p=build.git - actually, just support a "-f" option to use an alternate build Makefile --- diff --git a/build.sh b/build.sh index 660277ae..a77b4098 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,7 @@ # Mark Huang # Copyright (C) 2003-2005 The Trustees of Princeton University # -# $Id: build.sh,v 1.29 2005/05/04 19:13:44 mlhuang Exp $ +# $Id: build.sh,v 1.30 2005/05/04 20:34:59 mlhuang Exp $ # # Set defaults @@ -16,7 +16,7 @@ CVS_RSH=ssh MODULE=build TAG=HEAD BASE=$PWD -INSTALL=yes +MAKEFILE=Makefile # cron does not set USER? [ -z "$USER" ] && export USER=$LOGNAME @@ -25,7 +25,7 @@ INSTALL=yes export CVS_RSH # Get options -while getopts "d:r:m:nb:x:h" opt ; do +while getopts "d:r:m:f:b:x:h" opt ; do case $opt in d) CVSROOT=$OPTARG @@ -36,8 +36,8 @@ while getopts "d:r:m:nb:x:h" opt ; do m) MAILTO=$OPTARG ;; - n) - INSTALL=no + f) + MAKEFILE=$OPTARG ;; b) BASE=$OPTARG @@ -86,10 +86,8 @@ exec &>${BASE}/log # Build cvs -d ${CVSROOT} export -r ${TAG} -d ${BASE} ${MODULE} -make -C ${BASE} $@ -if [ "$INSTALL" = "yes" ] ; then - make -C ${BASE} install BASE=$BASE BUILDS=$BUILDS -fi +make -f ${MAKEFILE} -C ${BASE} && \ +make -f ${MAKEFILE} -C ${BASE} install BASE=$BASE BUILDS=$BUILDS rc=$? if [ $rc -ne 0 ] ; then