forked from mirrors/nixpkgs
nixos-rebuild: accept both: -jn and -j n
svn path=/nixos/trunk/; revision=21410
This commit is contained in:
parent
8754644faf
commit
ce642f0cc2
|
@ -81,9 +81,15 @@ while test "$#" -gt 0; do
|
|||
--show-trace|--no-build-hook|--keep-failed|-K|--keep-going|-k|--verbose|-v|--fallback)
|
||||
extraBuildFlags="$extraBuildFlags $i"
|
||||
;;
|
||||
--max-jobs|-j)
|
||||
j="$1"; shift 1
|
||||
extraBuildFlags="$extraBuildFlags $i $j"
|
||||
--max-jobs|-j*)
|
||||
if [ -z "${i:2}" ]; then
|
||||
# -j n
|
||||
extraBuildFlags="$extraBuildFlags $i $1"
|
||||
shift 1
|
||||
else
|
||||
# -jn
|
||||
extraBuildFlags="$extraBuildFlags $i"
|
||||
fi
|
||||
;;
|
||||
--fast)
|
||||
buildNix=
|
||||
|
|
Loading…
Reference in a new issue