From baadd38b5ee16ebc6ec385c2e9748eb36bfe10a2 Mon Sep 17 00:00:00 2001 From: "Robert P. Goldman" <rpgoldman@real-time.com> Date: Wed, 17 Mar 2010 19:40:00 -0500 Subject: [PATCH] usage bash function was forward-referenced. Fixed. --- test/run-tests.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/test/run-tests.sh b/test/run-tests.sh index c324aecb..82866ce5 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -5,6 +5,18 @@ # - quit with exit status 0 on getting eof # - quit with exit status >0 if an unhandled error occurs +usage () { + echo "$0 [lisp invocation] [scripts-regex]" + echo " - read lisp forms one at a time from matching scripts" + echo " - quit with exit status 0 on getting eof" + echo " - quit with exit status >0 if an unhandled error occurs" + echo " you need to supply the .script in the second argument" + echo " lisps include sbcl, clisp, allegro and allegromodern" + echo "OPTIONS:" + echo " -d -- debug mode" + echo " -u -h -- show this message." +} + unset DEBUG_ASDF_TEST while getopts "duh" OPTION @@ -38,18 +50,6 @@ fi sok=1 -usage () { - echo "$0 [lisp invocation] [scripts-regex]" - echo " - read lisp forms one at a time from matching scripts" - echo " - quit with exit status 0 on getting eof" - echo " - quit with exit status >0 if an unhandled error occurs" - echo " you need to supply the .script in the second argument" - echo " lisps include sbcl, clisp, allegro and allegromodern" - echo "OPTIONS:" - echo " -d -- debug mode" - echo " -u -h -- show this message." -} - DO () { ( set -x ; "$@" ); } do_tests() { -- GitLab