libmbus-config-body.in

来自「OpenMODBUS/TCP to RS-232/485 MODBUS RTU 」· IN 代码 · 共 97 行

IN
97
字号
usage(){    cat <<EOFUsage: libmbus-config [OPTION] ...Known values for OPTION are:  --prefix        print libmbus prefix  --libdir        print path to directory containing library  --libs          print library linking information  --ccopts        print compiler options  --cppflags      print pre-processor flags  --cflags        print preprocessor flags, I_opts, and compiler options  --I_opts        print "-I" include options  --L_opts        print linker "-L" flags for dynamic linking  --R_opts        print dynamic linker "-R" or "-rpath" flags  --ldopts        print linker options  --ldflags       print linker flags (ldopts, L_opts, R_opts, and libs)  --static        revise subsequent outputs for static linking  --help          print this help and exit  --version       print version informationEOF    exit $1}if test $# -eq 0; then    usage 1fiwhile test $# -gt 0; do    case "$1" in    --prefix)        echo ${prefix}        ;;    --version)        echo ${version}        exit 0        ;;    --help)        usage 0        ;;    --ccopts)        echo ${ccopts}        ;;    --cppflags)        echo ${cppflags}        ;;    --cflags)        echo ${I_opts} ${cppflags} ${ccopts}        ;;    --libdir)        echo ${libdir}        ;;    --libs)        echo ${libs}        ;;    --I_opts)        echo ${I_opts}        ;;    --L_opts)        echo ${L_opts}        ;;    --R_opts)        echo ${R_opts}        ;;    --ldflags)        echo ${ldflags} ${L_opts} ${R_opts} ${libs}        ;;    --static)        R_opts=""        ;;    *)        usage        exit 1        ;;    esac    shiftdoneexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?