1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-05 20:55:46 +03:00

build: Fixed options parsing.

This commit is contained in:
Andreas Schneider
2010-09-08 16:29:50 +02:00
parent 03087e020c
commit f9b0dca7bd

View File

@@ -132,23 +132,18 @@ while test -n "$1"; do
;; ;;
*-withstaticlib) *-withstaticlib)
OPTIONS="${OPTIONS} -DWITH_STATIC_LIB=ON" OPTIONS="${OPTIONS} -DWITH_STATIC_LIB=ON"
shift
;; ;;
*-unittesting) *-unittesting)
OPTIONS="${OPTIONS} -DWITH_TESTING=ON" OPTIONS="${OPTIONS} -DWITH_TESTING=ON"
shift
;; ;;
*-clientunittesting) *-clientunittesting)
OPTIONS="${OPTIONS} -DWITH_CLIENT_TESTING=ON" OPTIONS="${OPTIONS} -DWITH_CLIENT_TESTING=ON"
shift
;; ;;
*-withssh1) *-withssh1)
OPTIONS="${OPTIONS} -DWITH_SSH1=ON" OPTIONS="${OPTIONS} -DWITH_SSH1=ON"
shift
;; ;;
*-withserver) *-withserver)
OPTIONS="${OPTIONS} -DWITH_SERVER=ON" OPTIONS="${OPTIONS} -DWITH_SERVER=ON"
shift
;; ;;
----noarg) ----noarg)
echo "$ARG does not take an argument" echo "$ARG does not take an argument"