Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve portability, enable build on Solaris SPARC. #27

Merged
merged 7 commits into from Jan 15, 2020
2 changes: 1 addition & 1 deletion configure.sh
Expand Up @@ -212,7 +212,7 @@ replace_ext() {
_replace_ext_ext1="$2"
_replace_ext_ext2="$3"

_replace_ext_result=$(printf "$_replace_ext_file" | sed -e "s@\.$_replace_ext_ext1@\.$_replace_ext_ext2@")
_replace_ext_result=${_replace_ext_file%.$_replace_ext_ext1}.$_replace_ext_ext2

printf '%s\n' "$_replace_ext_result"
}
Expand Down
4 changes: 2 additions & 2 deletions functions.sh
Expand Up @@ -156,10 +156,10 @@ substring_replace() {
_substring_replace_replacement="$1"
shift

_substring_replace_result=$(printf '%s' "$_substring_replace_str" | \
_substring_replace_result=$(printf '%s\n' "$_substring_replace_str" | \
sed -e "s!$_substring_replace_needle!$_substring_replace_replacement!g")

printf '%s\n' "$_substring_replace_result"
printf '%s' "$_substring_replace_result"
}
gavinhoward marked this conversation as resolved.
Show resolved Hide resolved

gen_nlspath() {
Expand Down