From 0035a1bdd0c0e011eb55977b5bf3d3624a100e52 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Fri, 15 Oct 2010 13:02:36 -0500 Subject: [PATCH] script/makeworld: accept target/config (e.g. i386/GENERIC) as first parameter --- script/makeworld | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/makeworld b/script/makeworld index 21029b2..accb013 100755 --- a/script/makeworld +++ b/script/makeworld @@ -31,6 +31,13 @@ ROOT="$(realpath "$(dirname "${0}")/../worlds")" make_cpus="$(sysctl -n hw.ncpu)" make_jobs="$(( ${make_cpus} * 2 ))" +# Was the config specified on the command line? +if [ "${1}" ] +then + TARGET="${1%%/*}" + CONFIG="${1##*/}" +fi + # Going to build this config: TARGET="${TARGET:-i386}" CONFIG="${CONFIG:-GENERIC}" -- 2.42.0