⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fastcheck.beos

📁 Linux下ztelnet 的rz、sz源码
💻 BEOS
字号:
#! /bin/shsrcdir="$1"if test $srcdir = . ; then	srcdir=`pwd`fiif test $srcdir = .. ; then	srcdir=`pwd`/..fiobjdir="$2"if test $objdir = . ; then	objdir=`pwd`fitestdir=$objdir/fastcheck.lrzszSZ="$objdir/src/lsz"RZ="$objdir/src/lrz"echo checking with srcdir = $1 and objdir = $2z_test_files=""for i in $srcdir/src/l?z.c ; do	z_test_files="$z_test_files $i" donefor i in $objdir/src/l?z ; do	z_test_files="$z_test_files $i" done# change to tmp dirif test "x$TMPDIR" = x ; then	if test "x$TMP" = x ; then		cd /tmp	else		cd $TMP || cd /tmp	fielse	cd $TMPDIR || cd /tmpfirm -rf $testdirmkdir $testdirexec 5>$testdir/error.log(mkfifo $testdir/pipe || mknod $testdir/pipe p) 2>&5mkdir $testdir/zmodemfailed=0$objdir/beos-runpiped "$SZ -q $z_test_files" "cd $testdir/zmodem ; exec $RZ $QUIET"for i in $z_test_files ; do 	bn=`basename $i`	cmp $i $testdir/zmodem/$bn	if test $? -eq 0 ; then		rm -f $testdir/zmodem/$bn	else		failed=1	fidonerm -rf $testdirif test "x$failed" = x0  ; then	:else	echo "the test failed." >&2	echo "use 'make check' or 'make vcheck' for a more detailed test" >&2	touch $objdir/fastcheck.failed	exit 1fitouch $objdir/fastcheck.okexit 0

⌨️ 快捷键说明

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