aboutsummaryrefslogtreecommitdiff
path: root/contrib/bc/configure.sh
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2021-02-17 21:56:16 +0000
committerStefan Eßer <se@FreeBSD.org>2021-02-17 22:02:01 +0000
commit9a995fe186257315e7b3d01e24c55d86bb18fd32 (patch)
tree08b65330d3f08426c2959ce7dc5b91bec0a87e4b /contrib/bc/configure.sh
parent3046eb03ccf0a5fe63f5e6f4aad13ca422d3d011 (diff)
downloadsrc-9a995fe186257315e7b3d01e24c55d86bb18fd32.tar.gz
src-9a995fe186257315e7b3d01e24c55d86bb18fd32.zip
Upgrade to version 3.3.0
This update changes the behavior of "-e" or "-f" in BC_ENV_ARGS: Use of these options on the command line makes bc exit after executing the given commands. These options will not cause bc to exit when passed via the environment (but EOF in STDIN or -e or -f on the command line will make bc exit as before). The same applies to DC_ENV_ARGS with regard to the dc program.
Diffstat (limited to 'contrib/bc/configure.sh')
-rwxr-xr-xcontrib/bc/configure.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/contrib/bc/configure.sh b/contrib/bc/configure.sh
index ae1675cde97d..310c26882906 100755
--- a/contrib/bc/configure.sh
+++ b/contrib/bc/configure.sh
@@ -253,7 +253,7 @@ replace_ext() {
_replace_ext_ext1="$2"
_replace_ext_ext2="$3"
- _replace_ext_result=${_replace_ext_file%.$_replace_ext_ext1}.$_replace_ext_ext2
+ _replace_ext_result="${_replace_ext_file%.$_replace_ext_ext1}.$_replace_ext_ext2"
printf '%s\n' "$_replace_ext_result"
}
@@ -1199,17 +1199,12 @@ SRC_TARGETS=""
src_files=$(find_src_files $unneeded)
-temp_ifs="$IFS"
-IFS=$'\n'
-
for f in $src_files; do
o=$(replace_ext "$f" "c" "o")
SRC_TARGETS=$(printf '%s\n\n%s: %s %s\n\t$(CC) $(CFLAGS) -o %s -c %s\n' \
"$SRC_TARGETS" "$o" "$headers" "$f" "$o" "$f")
done
-IFS="$temp_ifs"
-
contents=$(replace "$contents" "HEADERS" "$headers")
contents=$(replace "$contents" "BC_ENABLED" "$bc")