summaryrefslogtreecommitdiff
path: root/script/handle/make/config
diff options
context:
space:
mode:
Diffstat (limited to 'script/handle/make/config')
-rwxr-xr-xscript/handle/make/config26
1 files changed, 7 insertions, 19 deletions
diff --git a/script/handle/make/config b/script/handle/make/config
index 81169953..9ae85a0e 100755
--- a/script/handle/make/config
+++ b/script/handle/make/config
@@ -38,26 +38,14 @@ main()
while getopts b:m:u:c:x: option
do
case "${1}" in
- -b)
- mode="all"
- shift ;;
- -u)
- mode="oldconfig"
- shift ;;
- -m)
- mode="menuconfig"
- shift ;;
- -c)
- mode="distclean"
- shift ;;
- -x)
- mode="crossgcc-clean"
- shift ;;
- *)
- fail "Invalid option" ;;
+ -b) mode="all" ;;
+ -u) mode="oldconfig" ;;
+ -m) mode="menuconfig" ;;
+ -c) mode="distclean" ;;
+ -x) mode="crossgcc-clean" ;;
+ *) fail "Invalid option" ;;
esac
- project="${OPTARG}"
- shift
+ shift; project="${OPTARG}"; shift
done
[ -z "${mode}" ] && fail "mode not given (-m, -u or -b)"