From 2780fd04834a3a0ac582d4787422ee2a2992083e Mon Sep 17 00:00:00 2001 From: kleuter Date: Wed, 4 Aug 2021 17:56:35 +0200 Subject: [PATCH] makej fix --- 5.15.2/compile_mac.sh | 4 +++- 5.15.2/compile_mac_arm.sh | 4 +++- 5.15.2/compile_mac_arm_cross.sh | 4 +++- 5.15.2/compile_mac_dev.sh | 4 +++- 5.15.2/compile_mac_static.sh | 4 +++- 5.15.4/compile_mac.sh | 4 +++- 5.15.4/compile_mac_arm.sh | 4 +++- 5.15.4/compile_mac_arm_cross.sh | 3 +++ 5.15.4/compile_mac_dev.sh | 4 +++- 5.15.4/compile_mac_static.sh | 4 +++- 5.6.3/compile_mac.sh | 4 +++- 11 files changed, 33 insertions(+), 10 deletions(-) diff --git a/5.15.2/compile_mac.sh b/5.15.2/compile_mac.sh index f0ac3fc..9cb0b26 100644 --- a/5.15.2/compile_mac.sh +++ b/5.15.2/compile_mac.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.2/compile_mac_arm.sh b/5.15.2/compile_mac_arm.sh index e3b6e28..b224145 100644 --- a/5.15.2/compile_mac_arm.sh +++ b/5.15.2/compile_mac_arm.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.2/compile_mac_arm_cross.sh b/5.15.2/compile_mac_arm_cross.sh index b8e42f0..cc7a07d 100644 --- a/5.15.2/compile_mac_arm_cross.sh +++ b/5.15.2/compile_mac_arm_cross.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.2/compile_mac_dev.sh b/5.15.2/compile_mac_dev.sh index 14346e2..a642596 100644 --- a/5.15.2/compile_mac_dev.sh +++ b/5.15.2/compile_mac_dev.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:/usr/local/Qt-5.15.2/bin cd qtbase diff --git a/5.15.2/compile_mac_static.sh b/5.15.2/compile_mac_static.sh index 4b17e20..60e6eeb 100644 --- a/5.15.2/compile_mac_static.sh +++ b/5.15.2/compile_mac_static.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.4/compile_mac.sh b/5.15.4/compile_mac.sh index 3aa45bb..f33f086 100644 --- a/5.15.4/compile_mac.sh +++ b/5.15.4/compile_mac.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.4/compile_mac_arm.sh b/5.15.4/compile_mac_arm.sh index 9634563..13e4b90 100644 --- a/5.15.4/compile_mac_arm.sh +++ b/5.15.4/compile_mac_arm.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.4/compile_mac_arm_cross.sh b/5.15.4/compile_mac_arm_cross.sh index 5f7ac0c..64e26a4 100644 --- a/5.15.4/compile_mac_arm_cross.sh +++ b/5.15.4/compile_mac_arm_cross.sh @@ -1,5 +1,8 @@ #!/bin/bash +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.15.4/compile_mac_dev.sh b/5.15.4/compile_mac_dev.sh index 81183e6..163e721 100644 --- a/5.15.4/compile_mac_dev.sh +++ b/5.15.4/compile_mac_dev.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:/usr/local/Qt-5.15.4/bin cd qtbase diff --git a/5.15.4/compile_mac_static.sh b/5.15.4/compile_mac_static.sh index c13ca8d..3394bad 100644 --- a/5.15.4/compile_mac_static.sh +++ b/5.15.4/compile_mac_static.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:$(pwd)/qtbase/bin cd qtbase diff --git a/5.6.3/compile_mac.sh b/5.6.3/compile_mac.sh index 37e2003..11efcaf 100644 --- a/5.6.3/compile_mac.sh +++ b/5.6.3/compile_mac.sh @@ -1,6 +1,8 @@ #!/bin/bash -alias makej="make -j $(sysctl hw.ncpu | awk '{print $2}')" +makej () { + make -j$(sysctl -n hw.ncpu) +} export PATH=$PATH:/usr/local/Qt-5.6.3/bin cd qtbase