Skip to content
Snippets Groups Projects
Commit 472aa9d0 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Taught the script to gracefully ignore command line arguments that don't concern it.

This way the build_externals.sh scripts of all of the projects could
accept the same list of command line arguments. Even if those in
DetCommon and AthDataQuality would not care about some of them.
parent 46f32b2c
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,9 @@ usage() {
echo " -b: 'Main build directory' to use for the code checkout and build"
echo " -f: Force the re-download of the externals repository"
echo " -c: Get the externals for the continuous integration (CI) system"
echo " -t: Build type (IGNORED)"
echo " -x: Extra CMake arguments (IGNORED)"
echo " -k: Extra 'make tool' arguments (IGNORED)"
echo ""
echo "If a build directory is not given, the default is '../build'"
echo "relative to the athena source directory."
......@@ -32,7 +35,7 @@ usage() {
ATLAS_BUILD_DIR=""
ATLAS_FORCE_DOWNLOAD=""
ATLAS_CI_BUILD=""
while getopts ":b:fch" opt; do
while getopts ":t:b:x:k:fch" opt; do
case $opt in
b)
ATLAS_BUILD_DIR=$OPTARG
......@@ -43,6 +46,10 @@ while getopts ":b:fch" opt; do
c)
ATLAS_CI_BUILD="1"
;;
t|x|k)
echo "Argument \"-${opt}\" ignored for" \
"${ATLAS_PROJECT_NAME}/build_externals.sh"
;;
h)
usage
exit 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment