fix script

This commit is contained in:
bolero-MURAKAMI 2013-09-20 01:39:16 +09:00
parent 9e9a246736
commit d8275b18f8
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ while [ -n "$1" ]; do
--gcc-version) gcc_version="$2"; shift 2;; --gcc-version) gcc_version="$2"; shift 2;;
--clang-version) clang_version="$2"; shift 2;; --clang-version) clang_version="$2"; shift 2;;
-D|--define) user_macros=(${user_macros[@]} "$2"); shift 2;; -D|--define) user_macros=(${user_macros[@]} "$2"); shift 2;;
-f|--force) force=1; shift 2;; -f|--force) force=1; shift;;
--) shift; break;; --) shift; break;;
*) echo >&2 -e ": \e[31munknown option($1) used.\e[m"; exit 1;; *) echo >&2 -e ": \e[31munknown option($1) used.\e[m"; exit 1;;
esac esac

View file

@ -31,7 +31,7 @@ while [ -n "$1" ]; do
-h|--height) height=$2; shift 2;; -h|--height) height=$2; shift 2;;
-W|--tile-width) tile_width=$2; shift 2;; -W|--tile-width) tile_width=$2; shift 2;;
-H|--tile-height) tile_height=$2; shift 2;; -H|--tile-height) tile_height=$2; shift 2;;
-f|--force) force=1; shift 2;; -f|--force) force=1; shift;;
--) shift; break;; --) shift; break;;
*) echo >&2 -e ": \e[31munknown option($1) used.\e[m"; exit 1;; *) echo >&2 -e ": \e[31munknown option($1) used.\e[m"; exit 1;;
esac esac