Commit d3a9430be46df336e3306ab92483c83fd98f4c14

Thomas de Grivel 2023-02-14T14:04:19

parallel build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/share/shpkg/shpkg.subr b/share/shpkg/shpkg.subr
index 1a7fd34..a9bd1fe 100644
--- a/share/shpkg/shpkg.subr
+++ b/share/shpkg/shpkg.subr
@@ -379,9 +379,9 @@ shpkg_build () {
             SHPKG_REPO_VERSION="$(shpkg_version "${SHPKG_REPO}")"
             if [ -f "${SHPKG_REPO_SRC_DIR}/Makefile" ]; then
 		( verbose 1 cd "${SHPKG_REPO_SRC_DIR}" &&
-                      verbose 1 make -j "{SHPKG_NCPU}"; )
+                      verbose 1 make -j "${SHPKG_NCPU}"; )
             elif [ -f "${SHPKG_SRC_DIR}/${SHPKG_REPO_DIR}/CMakeLists.txt" ]; then
-		cmake -j "{SHPKG_NCPU}" --build "${SHPKG_REPO_OBJ_DIR}"
+		cmake -j "${SHPKG_NCPU}" --build "${SHPKG_REPO_OBJ_DIR}"
             fi
             shpkg__tag_write build-done
 	fi