summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/fakeroot-pseudo.in11
1 files changed, 4 insertions, 7 deletions
diff --git a/debian/fakeroot-pseudo.in b/debian/fakeroot-pseudo.in
index 25df552..a6ab63f 100755
--- a/debian/fakeroot-pseudo.in
+++ b/debian/fakeroot-pseudo.in
@@ -32,15 +32,12 @@ FAKEROOT_BINDIR=/usr/bin
KEEPSTATEDIR=0
-GETOPTEST=`getopt --version`
-case $GETOPTEST in
-getopt*) # GNU getopt
+GETOPTTEST=`getopt -T`
+if test "$?" -eq 4; then # GNU getopt
FAKE_TEMP=`getopt -l lib: -l faked: -l unknown-is-real -l fd-base: -l version -l help -- +l:f:i:s:ub:vh "$@"`
- ;;
-*) # POSIX getopt ?
+else
FAKE_TEMP=`getopt l:f:i:s:ub:vh "$@"`
- ;;
-esac
+fi
if [ "$?" -ne 0 ]
then