mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 12:22:22 +00:00
Simplify OS detection functions.
The return statement in the functions appears unnecessary; remove it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29182 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
350ad05cc9
commit
10295ba5a0
40
configure
vendored
40
configure
vendored
@ -110,26 +110,26 @@ die () {
|
||||
issystem() {
|
||||
test "`echo $system_name | tr A-Z a-z`" = "`echo $1 | tr A-Z a-z`"
|
||||
}
|
||||
linux() { issystem "Linux" || issystem "uClinux" ; return "$?" ; }
|
||||
sunos() { issystem "SunOS" ; return "$?" ; }
|
||||
hpux() { issystem "HP-UX" ; return "$?" ; }
|
||||
irix() { issystem "IRIX" ; return "$?" ; }
|
||||
aix() { issystem "AIX" ; return "$?" ; }
|
||||
cygwin() { issystem "CYGWIN" ; return "$?" ; }
|
||||
freebsd() { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; return "$?" ; }
|
||||
netbsd() { issystem "NetBSD" ; return "$?" ; }
|
||||
bsdos() { issystem "BSD/OS" ; return "$?" ; }
|
||||
openbsd() { issystem "OpenBSD" ; return "$?" ; }
|
||||
dragonfly() { issystem "DragonFly" ; return "$?" ; }
|
||||
qnx() { issystem "QNX" ; return "$?" ; }
|
||||
darwin() { issystem "Darwin" ; return "$?" ; }
|
||||
gnu() { issystem "GNU" ; return "$?" ; }
|
||||
mingw32() { issystem "MINGW32" ; return "$?" ; }
|
||||
morphos() { issystem "MorphOS" ; return "$?" ; }
|
||||
amigaos() { issystem "AmigaOS" ; return "$?" ; }
|
||||
win32() { cygwin || mingw32 ; return "$?" ; }
|
||||
beos() { issystem "BEOS" ; return "$?" ; }
|
||||
os2() { issystem "OS/2" ; return "$?" ; }
|
||||
aix() { issystem "AIX"; }
|
||||
amigaos() { issystem "AmigaOS"; }
|
||||
beos() { issystem "BEOS"; }
|
||||
bsdos() { issystem "BSD/OS"; }
|
||||
cygwin() { issystem "CYGWIN"; }
|
||||
darwin() { issystem "Darwin"; }
|
||||
dragonfly() { issystem "DragonFly"; }
|
||||
freebsd() { issystem "FreeBSD" || issystem "GNU/kFreeBSD"; }
|
||||
gnu() { issystem "GNU"; }
|
||||
hpux() { issystem "HP-UX"; }
|
||||
irix() { issystem "IRIX"; }
|
||||
linux() { issystem "Linux"; }
|
||||
mingw32() { issystem "MINGW32"; }
|
||||
morphos() { issystem "MorphOS"; }
|
||||
netbsd() { issystem "NetBSD"; }
|
||||
openbsd() { issystem "OpenBSD"; }
|
||||
os2() { issystem "OS/2"; }
|
||||
qnx() { issystem "QNX"; }
|
||||
sunos() { issystem "SunOS"; }
|
||||
win32() { cygwin || mingw32; }
|
||||
|
||||
# arch test boolean functions
|
||||
# x86/x86pc is used by QNX
|
||||
|
Loading…
Reference in New Issue
Block a user