aboutsummaryrefslogtreecommitdiff
path: root/cbuild2.sh
diff options
context:
space:
mode:
authorRob Savoye <rob.savoye@linaro.org>2013-06-19 16:54:27 -0600
committerRob Savoye <rob.savoye@linaro.org>2013-06-19 16:54:27 -0600
commit40b519443ee2d64dbeadd2bc8a016e8e23ed7042 (patch)
tree461b3004e433fcecf35e3c58414e49784a104729 /cbuild2.sh
parent59ee6948cb66d355889f3f9a173219755e045b5d (diff)
make loading host.conf optional, add --merge option
Diffstat (limited to 'cbuild2.sh')
-rwxr-xr-xcbuild2.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/cbuild2.sh b/cbuild2.sh
index fd18f68..08ea25f 100755
--- a/cbuild2.sh
+++ b/cbuild2.sh
@@ -4,7 +4,11 @@
. "$(dirname "$0")/lib/common.sh" || exit 1
# load the configure file produced by configure
-. "${PWD}/host.conf" || exit 1
+if test -e "${PWD}/host.conf"; then
+ . "${PWD}/host.conf"
+else
+ warning "no host.conf file!"
+fi
# this is used to launch builds of dependant components
command_line_arguments=$*
@@ -130,6 +134,7 @@ usage()
echo " --clobber (force files to be downloaded even when they exist)"
echo " --force (force make errors to be ignored, answer yes for any prompts)"
echo " --parallel (do parallel builds, one per cpu core)"
+ echo " --merge XXX (merge a commit from trunk)"
exit 1
}
@@ -232,7 +237,7 @@ while test $# -gt 0; do
install|i*)
make_install $3
;;
- make|m*)
+ make|ma*)
make_all $3
;;
push|p*)
@@ -253,6 +258,10 @@ while test $# -gt 0; do
esac
shift
;;
+ --merge)
+ merge_branch $2
+ shift
+ ;;
--clobber)
clobber=yes
;;