kannel-nag

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

TXT
66
字号
#!/bin/bash## kannel-nag - do a test compile of Kannel and mail results to devel list## This script is meant to compile Kannel and mail all warnings and errors# to the development list. It is meant to be run on a few carefully chosen# machines, not by everyone on the Internet. The goal is to make sure Kannel# at least compiles on many platforms. It is quite uninteresting to have# fiftyseven thousand people running this script on identical Linux machines.## I repeat: DO NOT RUN THIS SCRIPT without asking for permission of the# receiver first.## TODO:# - CFLAGS now set for GCC, should be more portable## Lars Wirzenius <liw@wapit.com>#set -eaddr=""CVSROOT=":pserver:anonymous@cvs.kannel.3glab.org:/home/cvs"dir="kannel-nag-dir"cd /var/tmprm -rf $dirmkdir $dircd $dircvs -Q -d$CVSROOT co gatewaycd gatewayif CFLAGS='-Wall -O2 -g' ./configure >config.output 2>&1then	configure=ok	touch .depend || true	make -s depend || true	make -s >make.output 2>&1 || trueelse	configure=failed	fiif test -s make.output || [ "$configure" = failed ]then	(	echo "Kannel compilation test."	echo "" 	echo "Host: `uname -a`"	echo ""	echo "Kannel compilation had warnings or failed."	echo ""	if test -e make.output	then		echo "Output of 'make -s':"		cat make.output		echo "-------------------------------------------------------"		echo ""	fi	echo "Output of 'CFLAGS='-Wall -O2 -g' ./configure':"	cat config.output	) | mail -s "Kannel automatic compilation test for `uname -s`" $addrficd /var/tmprm -rf $dir

⌨️ 快捷键说明

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