Ignore:
Timestamp:
02/11/13 19:05:51 (10 years ago)
Author:
ehuelsmann
Message:

Patch by ASau on freenode/#abcl: allow more casing variations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/build-from-lisp.sh

    r13041 r14366  
    1616check_boolean()
    1717{
    18     if [ "$1" == "t" ]   || \
    19        [ "$1" == "T" ]   || \
    20        [ "$1" == "nil" ] || \
    21        [ "$1" == "NIL" ]
    22     then
    23         return
    24     else
    25         usage
    26         echo "Error: Argument \`$1' is neither \"nil\" nor \"t\"."
    27         exit 1
    28     fi
     18    case "$1" in
     19        [Tt]|[Nn][Ii][Ll])
     20            :;;
     21        *)
     22            usage
     23            echo "Error: Argument \`$1' is neither \"nil\" nor \"t\"."
     24            exit 1
     25            ;;
     26    esac
    2927}
    3028
Note: See TracChangeset for help on using the changeset viewer.