[Intel-gfx] [dim PATCH 3/4] dim: move helper functions above command line options handling

Jani Nikula jani.nikula at intel.com
Tue Apr 4 13:59:01 UTC 2017


The functions have been added kind of in the middle at some point. Clean
it up.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 dim | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/dim b/dim
index a76e4e4d3f09..45dc07cd0426 100755
--- a/dim
+++ b/dim
@@ -114,16 +114,6 @@ function read_integration_config
 }
 read_integration_config
 
-#
-# Command line options.
-#
-
-DRY_RUN=
-INTERACTIVE=
-DRY=
-FORCE=
-HELP=
-
 function echoerr
 {
 	echo "$dim: $*" >&2
@@ -145,6 +135,16 @@ function pause
 	echo
 }
 
+#
+# Command line options.
+#
+
+DRY_RUN=
+INTERACTIVE=
+DRY=
+FORCE=
+HELP=
+
 while getopts hdfis opt; do
 	case "$opt" in
 		d)
-- 
2.1.4



More information about the Intel-gfx mailing list