foobar-config.sh

来自「The Kannel Open Source WAP and SMS gatew」· Shell 代码 · 共 61 行

SH
61
字号
#!/bin/sh## foobar-config.sh -- a generic foobar-config shell script generator## This generator takes 3 arguments and creates a foobar-config shell# scirpt that is used to determine the common CFLAGS for compiling# again this foobar package, LIBS for linking against dependency libs# and VERSION for displaying which version is used/installed.## Derived from Ulric Eriksson <ulric@siag.nu> from the libsdb project.## Stipe Tolj <tolj@wapme-systems.de>#cat << EOF#!/bin/shusage(){	echo "usage: \$0 [--cflags] [--libs] [--version]"	exit 0}cflags=nolibs=noversion=notest "\$1" || usagewhile test "\$1"; do	case "\$1" in	--cflags )		cflags=yes		;;	--libs )		libs=yes		;;	--version )		version=yes		;;	* )		usage		;;	esac	shiftdonetest "\$cflags" = yes && cat << FOO$1FOOtest "\$libs" = yes && cat << FOO$2FOOtest "\$version" = yes && cat << FOO$3FOOEOF

⌨️ 快捷键说明

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