From a8f19d7c8aec1eb5e8c545f0fc003d0fe7ab4818 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Thu, 4 Apr 2019 01:15:06 +0100 Subject: Better option-reading in configure, using .build to access BDIR Until now, the steps to manage the command-line options of the configure script were limited (couldn't accept an equal sign or space between the option name and value). With this commit, it can now also accept optional equal signs between the option name and value. Thus not causing many confusions. Also, it is more logically consistent for the link to the build-directory to be placed in the top directory (as a hidden file like `.local' until now), and not as a visible directory like `reproduce/build' (which we used until now). Therefore, with this commit, the link to easily access the build-directory is `.build' in the top source directory. Finally, because `minmapsize' is too specific to Gnuastro and has now been given its default value at the start of the configure script, the description for `minmapsize' has been removed (to not confuse users who don't use Gnuastro). If anyone is familiar enough with Gnuastro to change it, they already know it from its book. --- configure | 288 +++++++++++++++++++------------------------------------------- 1 file changed, 86 insertions(+), 202 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 3e0a7f0..14be525 100755 --- a/configure +++ b/configure @@ -22,9 +22,6 @@ # . - - - # Script settings # --------------- # Stop the script if there are any errors. @@ -34,58 +31,33 @@ set -e -# Output of --help -# ---------------- -me=$0 # Executable file name. -help_print() { - - if [ x"$build_dir" = x ]; then - bdir_status="NOT SET" - else - bdir_status="$build_dir" - fi - - if [ x"$input_dir" = x ]; then - indir_status="NOT SET" - else - indir_status="$input_dir" - fi +# Default option values +jobs=0 +build_dir= +input_dir= +software_dir= +existing_conf=0 +minmapsize=10000000000 - if [ x"$software_dir" = x ]; then - software_status="NOT SET" - else - software_status="$software_dir" - fi - if [ $in_minmapsize = 0 ]; then - mm_status="NOT SET" - else - mm_status="$in_minmapsize" - fi - if [ $jobs = "0" ]; then - jobs_status="NUMBER OF THREADS ON SYSTEM" - else - jobs_status=$jobs - fi - if [ $existing_conf = 1 ]; then - ec_status="ACTIVATED" - else - ec_status="NOT SET" - fi +# Output of --help +# ---------------- +me=$0 # Executable file name. +print_help() { # Print the output. cat <