浏览代码

Merge pull request #2803 from rengolin/ecl-regress

Fix include dir and enable passing multiple directories
Gavin Halliday 13 年之前
父节点
当前提交
d2a9a8eaa4
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      ecl/regress/regress.sh

+ 5 - 5
ecl/regress/regress.sh

@@ -27,7 +27,7 @@
 # in your build directory. (option: -e $BUILDDIR/Debug/bin/eclcc)
 ##############################################################################
 
-syntax="syntax: $0 [-t target_dir] [-c compare_dir] [-i include_dir] [-e eclcc] [-d diff_program]"
+syntax="syntax: $0 [-t target_dir] [-c compare_dir] [-I include_dir ...] [-e eclcc] [-d diff_program]"
 
 ## Create Makefile (git doesn't like tabs)
 echo "FILES=\$(shell echo *.ecl*)" > Makefile
@@ -58,14 +58,14 @@ if [[ $1 = '' ]]; then
     echo $syntax
     echo " * target_dir automatically created with run_pid"
     echo " * compare_dir necessary for comparisons"
-    echo " * include dir for special ECL headers"
+    echo " * include dir for special ECL headers (allows multiple paths)"
     echo " * eclcc necessary for compilation, otherwise, only comparison will be made"
     echo " * diff_program must be able to handle directories"
     echo
     exit -1
 fi
 if [[ $* != '' ]]; then
-    while getopts "t:c:i:e:d:" opt; do
+    while getopts "t:c:I:e:d:" opt; do
         case $opt in
             t)
                 target_dir=$OPTARG
@@ -73,8 +73,8 @@ if [[ $* != '' ]]; then
             c)
                 compare_dir=$OPTARG
                 ;;
-            i)
-                include_dir=$OPTARG
+            I)
+                include_dir="$include_dir -I$OPTARG"
                 ;;
             e)
                 eclcc=$OPTARG