From bbd7a480958466eb7ab5db30cfe65c42ca5ec769 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 --- .../trunk/releng/inc/releng_getopts.inc | 45 ------------------- 1 file changed, 45 deletions(-) diff --git a/libisoburn/trunk/releng/inc/releng_getopts.inc b/libisoburn/trunk/releng/inc/releng_getopts.inc index 6a1b6fdc..4bc21688 100644 --- a/libisoburn/trunk/releng/inc/releng_getopts.inc +++ b/libisoburn/trunk/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