Revert "build: fix typo in cmake patch"

This reverts commit 685570858d.

The commit had several formal flaws, revert it and hopefully apply
it properly next time.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2020-08-09 23:59:20 +02:00
parent eb95ca3b5c
commit c25c9e98f5

View File

@ -5,7 +5,7 @@
cmake_original_make_flags="${cmake_make_flags}" cmake_original_make_flags="${cmake_make_flags}"
if [ "x${cmake_parallel_make}" != "x" ]; then if [ "x${cmake_parallel_make}" != "x" ]; then
- cmake_make_flags="${cmake_make_flags} -j ${cmake_parallel_make}" - cmake_make_flags="${cmake_make_flags} -j ${cmake_parallel_make}"
+ case "$cmake_parallel_make" in + case "$cmake_paralle_make" in
+ [0-9]*) cmake_parallel_make="-j ${cmake_parallel_make}";; + [0-9]*) cmake_parallel_make="-j ${cmake_parallel_make}";;
+ esac + esac
+ cmake_make_flags="${cmake_make_flags} ${cmake_parallel_make}" + cmake_make_flags="${cmake_make_flags} ${cmake_parallel_make}"