aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Fenoll <[email protected]>2017-12-14 14:45:35 +0100
committerPierre Fenoll <[email protected]>2018-03-14 11:40:25 +0100
commit45fd6e1f1337e6d03c950a4160b7b05d100487f9 (patch)
tree503870d5959461365005c26686528ab9d984d143
parent218a82a4a72f1f174ad05239835ccb4dfde3264f (diff)
downloadkerl-45fd6e1f1337e6d03c950a4160b7b05d100487f9.tar.gz
kerl-45fd6e1f1337e6d03c950a4160b7b05d100487f9.tar.bz2
kerl-45fd6e1f1337e6d03c950a4160b7b05d100487f9.zip
In kerl line 646:
OSVERSION=`uname -r` ^-- SC2006: Use $(..) instead of legacy `..`. -- RELVERSION=`get_otp_version "$1"` ^-- SC2034: RELVERSION appears unused. Verify it or export it. ^-- SC2006: Use $(..) instead of legacy `..`. -- In kerl line 1239: dirs=`find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;` ^-- SC2006: Use $(..) instead of legacy `..`. -- In kerl line 1240: apps=`for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo` ^-- SC2006: Use $(..) instead of legacy `..`. -- In kerl line 2003: ACTIVE_PATH=`get_active_path` ^-- SC2006: Use $(..) instead of legacy `..`. In kerl line 2016: ACTIVE_PATH=`get_active_path` ^-- SC2006: Use $(..) instead of legacy `..`.
-rwxr-xr-xkerl14
1 files changed, 7 insertions, 7 deletions
diff --git a/kerl b/kerl
index 6ae3b34..48de870 100755
--- a/kerl
+++ b/kerl
@@ -648,8 +648,8 @@ _do_build()
{
case "$KERL_SYSTEM" in
Darwin)
- OSVERSION=`uname -r`
- RELVERSION=`get_otp_version "$1"`
+ OSVERSION=$(uname -r)
+ RELVERSION=$(get_otp_version "$1")
# Ensure that the --enable-darwin-64bit flag is set on all macOS
# That way even on older Erlangs we get 64 bit Erlang builds
@@ -1241,8 +1241,8 @@ build_plt()
plt=$dialyzerd/plt
build_log=$dialyzerd/build.log
dialyzer=$1/bin/dialyzer
- dirs=`find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;`
- apps=`for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo`
+ dirs=$(find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;)
+ apps=$(for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo)
$dialyzer --output_plt $plt --build_plt --apps $apps >> $build_log 2>&1
status=$?
if [ $status -eq 0 ] || [ $status -eq 2 ]; then
@@ -1482,7 +1482,7 @@ list_print()
if [ -z "$2" ]; then
cat "$KERL_BASE_DIR/otp_$1"
else
- echo `cat "$KERL_BASE_DIR/otp_$1"`
+ echo $(cat "$KERL_BASE_DIR/otp_$1")
fi
return 0
fi
@@ -2092,7 +2092,7 @@ case "$1" in
fi
;;
plt)
- ACTIVE_PATH=`get_active_path`
+ ACTIVE_PATH=$(get_active_path)
if ! do_plt "$ACTIVE_PATH"; then
exit 1;
fi
@@ -2105,7 +2105,7 @@ case "$1" in
list_print installations
echo "----------"
if do_active; then
- ACTIVE_PATH=`get_active_path`
+ ACTIVE_PATH=$(get_active_path)
if [ -n "$ACTIVE_PATH" ]; then
do_plt "$ACTIVE_PATH"
print_buildopts "$ACTIVE_PATH"