Loading ci/complexity_measurements/getWmops.sh +8 −7 Original line number Diff line number Diff line Loading @@ -29,12 +29,11 @@ # the United Nations Convention on Contracts on the International Sales of Goods. function usage { echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode[full|mem_only]\"" echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode{full(default)|mem_only}\"" exit 1 } # get format from command line if [ $# -ne 3 ]; then if [ $# -ne 2 ] && [ $# -ne 3 ]; then usage fi Loading @@ -42,11 +41,13 @@ ivas_format=$1 output_format="$2" mode_arg_script="" if [ $# -eq 3 ]; then if [ "$3" = "mem_only" ]; then mode_arg_script="--wmc_tool_mem_only" elif [ "$3" != "full" ]; then usage fi fi date=`date +%Y%m%d` # used for log-file file ending shortDate=`date "+%b %d" | sed -e "s/\ /_/g"` # stored in the log-file Loading Loading
ci/complexity_measurements/getWmops.sh +8 −7 Original line number Diff line number Diff line Loading @@ -29,12 +29,11 @@ # the United Nations Convention on Contracts on the International Sales of Goods. function usage { echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode[full|mem_only]\"" echo "Usage: $0 \"ivas-format(s)\" \"output-format(s)\" \"mode{full(default)|mem_only}\"" exit 1 } # get format from command line if [ $# -ne 3 ]; then if [ $# -ne 2 ] && [ $# -ne 3 ]; then usage fi Loading @@ -42,11 +41,13 @@ ivas_format=$1 output_format="$2" mode_arg_script="" if [ $# -eq 3 ]; then if [ "$3" = "mem_only" ]; then mode_arg_script="--wmc_tool_mem_only" elif [ "$3" != "full" ]; then usage fi fi date=`date +%Y%m%d` # used for log-file file ending shortDate=`date "+%b %d" | sed -e "s/\ /_/g"` # stored in the log-file Loading