From 529205ae72f71a51ad6f1c31a3b2c701007ebb4f Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 2 Sep 2017 19:55:58 +1000 Subject: [PATCH] compilationunits.sh: accept arguments --- qcsrc/tools/compilationunits.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 -- 2.39.2