Commit f84fe1f5 authored by Dominik Charousset's avatar Dominik Charousset

Replaced $() syntax with `` in configure script

parent 6762de28
...@@ -12,7 +12,8 @@ use this configure script to access CMake equivalent functionality.\ ...@@ -12,7 +12,8 @@ use this configure script to access CMake equivalent functionality.\
} }
command="$0 $*" command="$0 $*"
sourcedir="$( cd "$( dirname "$0" )" && pwd )" dirname_0=`dirname $0`
sourcedir=`cd $dirname_0 && pwd`
usage="\ usage="\
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
...@@ -100,7 +101,7 @@ configure () ...@@ -100,7 +101,7 @@ configure ()
;; ;;
*) *)
# relative path given; convert to absolute path # relative path given; convert to absolute path
absolute_builddir="$(pwd)/$builddir" absolute_builddir="$PWD/$builddir"
;; ;;
esac esac
...@@ -199,7 +200,7 @@ while [ $# -ne 0 ]; do ...@@ -199,7 +200,7 @@ while [ $# -ne 0 ]; do
append_cache_entry MORE_CLANG_WARNINGS BOOL true append_cache_entry MORE_CLANG_WARNINGS BOOL true
;; ;;
--with-cppa-log-level=*) --with-cppa-log-level=*)
level=$(echo "$optarg" | tr '[:lower:]' '[:upper:]') level=`echo "$optarg" | tr '[:lower:]' '[:upper:]'`
case $level in case $level in
ERROR) ERROR)
append_cache_entry CPPA_LOG_LEVEL STRING 0 append_cache_entry CPPA_LOG_LEVEL STRING 0
...@@ -289,7 +290,7 @@ if [ -n "$dualbuild" ]; then ...@@ -289,7 +290,7 @@ if [ -n "$dualbuild" ]; then
fi fi
for i in gcc clang; do for i in gcc clang; do
compiler="$(eval echo \$$i)" compiler=`eval echo \$$i`
configure $compiler $i "" "" $CMakeGenerator configure $compiler $i "" "" $CMakeGenerator
done done
else else
...@@ -304,7 +305,7 @@ else ...@@ -304,7 +305,7 @@ else
fi fi
printf "DIRS := %s\n\n" "$workdirs" > $sourcedir/Makefile printf "DIRS := %s\n\n" "$workdirs" > $sourcedir/Makefile
makefile=$(cat <<'EOT' makefile=`cat <<'EOT'
all: all:
@for i in $(DIRS); do $(MAKE) -C $$i $@ || exit; done @for i in $(DIRS); do $(MAKE) -C $$i $@ || exit; done
...@@ -328,6 +329,6 @@ doc: ...@@ -328,6 +329,6 @@ doc:
.PHONY: all test install uninstall clean distclean .PHONY: all test install uninstall clean distclean
EOT EOT
) `
echo "$makefile" >> $sourcedir/Makefile echo "$makefile" >> $sourcedir/Makefile
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment