diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2020-09-03 21:18:11 +0100 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2020-09-03 21:18:11 +0100 |
commit | 3239fc6037199e28b54fbe104b082a9bd13b6ad9 (patch) | |
tree | 9b54fa586bead68bf2c0d38f5e21adbb84eb451b /project | |
parent | 621d71e03bc66b89e9dc5d6acc8c37b403adc8a2 (diff) | |
parent | 6d18576568da8298295c82c0853057d7ea5e8b61 (diff) |
Imported recent work in Maneage, minor conflicts fixed
Only two small conflicts came up:
* The addition of the hardware architecture macro in 'paper.tex' (which
was removed for now, but will be added as the referee has requested
within the text).
* The usage of "" around directory variables in 'paper.mk'.
Diffstat (limited to 'project')
-rwxr-xr-x | project | 62 |
1 files changed, 32 insertions, 30 deletions
@@ -167,27 +167,27 @@ do # Configure options: - -b|--builddir) build_dir="$2"; check_v "$1" "$build_dir"; shift;shift;; - -b=*|--build-dir=*) build_dir="${1#*=}"; check_v "$1" "$build_dir"; shift;; - -b*) build_dir=$(echo "$1" | sed -e's/-b//'); check_v "$1" "$build_dir"; shift;; - -e|--existing-conf) existing_conf=1; shift;; + -b|--build-dir) IFS='"' build_dir="$2"; check_v "$1" "$build_dir"; shift;shift;; + -b=*|--build-dir=*) IFS='"' build_dir="${1#*=}"; check_v "$1" "$build_dir"; shift;; + -b*) IFS='"' build_dir=$(echo "$1" | sed -e's/-b//'); check_v "$1" "$build_dir"; shift;; + -e|--existing-conf) existing_conf=1; shift;; -e*|--existing-conf=*) on_off_option_error --existing-conf -e;; - --host-cc) host_cc=1; shift;; + --host-cc) host_cc=1; shift;; --host-cc=*) on_off_option_error --host-cc;; - -i|--input-dir) input_dir="$2"; check_v "$1" "$input_dir"; shift;shift;; - -i=*|--input-dir=*) input_dir="${1#*=}"; check_v "$1" "$input_dir"; shift;; - -i*) input_dir=$(echo "$1" | sed -e's/-i//'); check_v "$1" "$input_dir"; shift;; - -m|--minmapsize) minmapsize="$2"; check_v "$1" "$minmapsize"; shift;shift;; - -m=*|--minmapsize=*) minmapsize="${1#*=}"; check_v "$1" "$minmapsize"; shift;; - -m*) minmapsize=$(echo "$1" | sed -e's/-m//'); check_v "$1" "$minmapsize"; shift;; - -s|--software-dir) software_dir="$2"; check_v "$1" "$software_dir"; shift;shift;; - -s=*|--software-dir=*) software_dir="${1#*=}"; check_v "$1" "$software_dir"; shift;; - -s*) software_dir=$(echo "$1" | sed -e's/-s//'); check_v "$1" "$software_dir"; shift;; - --check-config) check_config=1; shift;; + -i|--input-dir) IFS='"' input_dir="$2"; check_v "$1" "$input_dir"; shift;shift;; + -i=*|--input-dir=*) IFS='"' input_dir="${1#*=}"; check_v "$1" "$input_dir"; shift;; + -i*) input_dir=$(echo "$1" | sed -e's/-i//'); check_v "$1" "$input_dir"; shift;; + -m|--minmapsize) minmapsize="$2"; check_v "$1" "$minmapsize"; shift;shift;; + -m=*|--minmapsize=*) minmapsize="${1#*=}"; check_v "$1" "$minmapsize"; shift;; + -m*) minmapsize=$(echo "$1" | sed -e's/-m//'); check_v "$1" "$minmapsize"; shift;; + -s|--software-dir) IFS='"' software_dir="$2"; check_v "$1" "$software_dir"; shift;shift;; + -s=*|--software-dir=*) IFS='"' software_dir="${1#*=}"; check_v "$1" "$software_dir"; shift;; + -s*) IFS='"' software_dir=$(echo "$1" | sed -e's/-s//'); check_v "$1" "$software_dir"; shift;; + --check-config) check_config=1; shift;; --check-config=*) on_off_option_error --check-config;; - --clean-texdir) clean_texdir=1; shift;; + --clean-texdir) clean_texdir=1; shift;; --clean-texdir=*) on_off_option_error --clean-texdir;; - --all-highlevel) all_highlevel=1; shift;; + --all-highlevel) all_highlevel=1; shift;; --all-highlevel=*) on_off_option_error --all-highlevel;; # Configure and Make options: @@ -279,7 +279,7 @@ EOF check=$(ls .local/version-info/proglib/) if ! [ "x$check" = x ]; then printresults=1 - ln -s $(pwd)/.local/version-info/proglib/* $checkdir/ + ln -s "$(pwd)"/.local/version-info/proglib/* $checkdir/ fi # If something was actually found, then print them. @@ -304,7 +304,7 @@ EOF echo "========================" # Wait for the next round of checks. - sleep 1; + sleep 1 done exit 0 fi @@ -506,22 +506,24 @@ case $operation in fi # Run the project's own shell without inheriting any environment - # from the host. + # from the host. The 'TERM' environment variable is necessary for + # tools like some text editors. bdir=`.local/bin/realpath .build` - instdir=$bdir/software/installed + instdir="$bdir"/software/installed .local/bin/env -i \ - HOME=$bdir \ + HOME="$bdir" \ + TERM="$TERM" \ CCACHE_DISABLE=1 \ - PATH=$instdir/bin \ - LDFLAGS=-L$instdir/lib \ - SHELL=$instdir/bin/bash \ - CPPFLAGS=-I$instdir/include \ - LD_LIBRARY_PATH=$instdir/lib \ + PATH="$instdir"/bin \ + LDFLAGS=-L"$instdir"/lib \ + SHELL="$instdir"/bin/bash \ + CPPFLAGS=-I"$instdir"/include \ + LD_LIBRARY_PATH="$instdir"/lib \ OMPI_MCA_plm_rsh_agent=/bin/false \ - PYTHONPATH=$instdir/lib/python/site-packages \ - PYTHONPATH3=$instdir/lib/python/site-packages \ + PYTHONPATH="$instdir"/lib/python/site-packages \ + PYTHONPATH3="$instdir"/lib/python/site-packages \ PS1="[\[\033[32m\](maneage)\[\033[00m\] \u@\h \W]$ " \ - $instdir/bin/bash + "$instdir"/bin/bash ;; |