@@ -14,23 +14,17 @@ NPROC=$(command -v gnproc||command -v nproc)
1414READLINK=$( command -v greadlink|| command -v readlink)
1515SED=$( command -v gsed|| command -v sed)
1616
17+ SYSTEM_TIMEOUT=$( command -v timeout)
18+ SYSTEM_YES=$( command -v yes)
19+
1720ME=" ${0} "
1821ME_dir=" $( dirname -- " $( " ${READLINK} " -fm -- " ${ME} " ) " ) "
1922REPO_main_dir=" $( dirname -- " ${ME_dir} " ) "
2023
21- # Default profile is 'debug'
22- UU_MAKE_PROFILE=' debug'
23- CARGO_FEATURE_FLAGS=" "
24-
25- for arg in " $@ "
26- do
27- if [ " $arg " == " --release-build" ]; then
28- UU_MAKE_PROFILE=' release'
29- break
30- fi
31- done
3224
33- echo " UU_MAKE_PROFILE='${UU_MAKE_PROFILE} '"
25+ : ${PROFILE:= debug} # default profile
26+ export PROFILE
27+ CARGO_FEATURE_FLAGS=" "
3428
3529# ## * config (from environment with fallback defaults); note: GNU is expected to be a sibling repo directory
3630
@@ -39,11 +33,6 @@ path_GNU="$("${READLINK}" -fm -- "${path_GNU:-${path_UUTILS}/../gnu}")"
3933
4034# ##
4135
42- SYSTEM_TIMEOUT=$( command -v timeout)
43- SYSTEM_YES=$( command -v yes)
44-
45- # ##
46-
4736release_tag_GNU=" v9.9"
4837
4938# check if the GNU coreutils has been cloned, if not print instructions
@@ -71,9 +60,9 @@ echo "path_GNU='${path_GNU}'"
7160# ##
7261
7362if [[ ! -z " $CARGO_TARGET_DIR " ]]; then
74- UU_BUILD_DIR=" ${CARGO_TARGET_DIR} /${UU_MAKE_PROFILE } "
63+ UU_BUILD_DIR=" ${CARGO_TARGET_DIR} /${PROFILE } "
7564else
76- UU_BUILD_DIR=" ${path_UUTILS} /target/${UU_MAKE_PROFILE } "
65+ UU_BUILD_DIR=" ${path_UUTILS} /target/${PROFILE } "
7766fi
7867echo " UU_BUILD_DIR='${UU_BUILD_DIR} '"
7968
10594cd -
10695
10796# Pass the feature flags to make, which will pass them to cargo
108- " ${MAKE} " PROFILE=" ${UU_MAKE_PROFILE } " CARGOFLAGS=" ${CARGO_FEATURE_FLAGS} "
97+ " ${MAKE} " PROFILE=" ${PROFILE } " CARGOFLAGS=" ${CARGO_FEATURE_FLAGS} "
10998# min test for SELinux
110- [ " ${SELINUX_ENABLED} " = 1 ] && touch g && " ${UU_MAKE_PROFILE } " /stat -c%C g && rm g
99+ [ " ${SELINUX_ENABLED} " = 1 ] && touch g && " ${PROFILE } " /stat -c%C g && rm g
111100
112101cp " ${UU_BUILD_DIR} /install" " ${UU_BUILD_DIR} /ginstall" # The GNU tests rename this script before running, to avoid confusion with the make target
113102# Create *sum binaries
0 commit comments