From 02a13e140f2dec296d7f5cd583c0c7d1ff7e9162 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 15 Jul 2011 10:29:33 +0000 Subject: [PATCH] Removed usage of getopts in releng_getopts.inc --- releng/inc/releng_getopts.inc | 45 ----------------------------------- 1 file changed, 45 deletions(-) diff --git a/releng/inc/releng_getopts.inc b/releng/inc/releng_getopts.inc index 6a1b6fdc..4bc21688 100644 --- a/releng/inc/releng_getopts.inc +++ b/releng/inc/releng_getopts.inc @@ -85,10 +85,6 @@ cleanup() { ############################################# -no_getopts=1 -if test "$no_getopts" = 1 -then - next_is= for i in "$@" do @@ -144,41 +140,6 @@ then exit 31 fi -# no_getopts = 1 -else -# no_getopts != 1 - -while getopts "x:k:c:f:h" OPTION -do - case $OPTION in - x) - RELENG_XORRISO=$OPTARG - ;; - k) - KEEP=$OPTARG - ;; - c) - CLEANUP=$OPTARG - cleanup - exit 0 - ;; - f) - SIMULATE_FAILURE=$OPTARG - ;; - h) - print_help - exit 0 - ;; - *) -# print_help -# exit 31 - ;; - esac -done - -# no_getopts != 1 -fi - # Each releng_ test should decide whether or not to check that #if [ ! -x $RELENG_XORRISO ]; then @@ -200,9 +161,3 @@ if [ x"$CLEANUP" != x"0" -a x"$CLEANUP" != x"1" ]; then fi -# <<< This cannot happen if $no_getopts = 1 -if [ x"$SIMULATE_FAILURE" != x"0" -a x"$SIMULATE_FAILURE" != x"1" ]; then - print_help - printf "\n${SELF}: -f simulate failure.\n\n" - exit 31 -fi