repo.or.cz
/
mina86-dot-files.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[bin] Remove pf and pd commands; I’ve not used them in years
[mina86-dot-files.git]
/
bin
/
make
blob
3bd7fedf735c73e48ca679c8ba618b2960cf429c
1
#!/bin/sh
2
3
jobs
=
4
if
[
-z
"
$MAKEFLAGS
"
] &&
jobs
=
$
(
grep
-c
^processor
/
proc
/
cpuinfo
);
then
5
jobs
=
--jobs
=
$
((
jobs
+
jobs
/
2
))
6
fi
7
8
nice
=
9
if
[
"$(nice)"
-le
0
];
then
10
nice
=
nice
11
fi
12
13
exec
$nice
/
usr
/
bin
/
make
$jobs
"$@"