From: TimePath Date: Sat, 2 Sep 2017 09:55:58 +0000 (+1000) Subject: compilationunits.sh: accept arguments X-Git-Tag: xonotic-v0.8.5~2483 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=529205ae72f71a51ad6f1c31a3b2c701007ebb4f;p=xonotic%2Fxonotic-data.pk3dir.git compilationunits.sh: accept arguments --- diff --git a/qcsrc/tools/compilationunits.sh b/qcsrc/tools/compilationunits.sh index e835fa671..e3d1eb013 100755 --- a/qcsrc/tools/compilationunits.sh +++ b/qcsrc/tools/compilationunits.sh @@ -74,6 +74,12 @@ function check() { done } -check client -check server -check menu +if [ ${#@} -eq 0 ]; then + check client + check server + check menu +else + for var in ${@}; do + check ${var} + done +fi