cond5.test

来自「LINUX下的源码工具,可自己分析,或者直接装在系统上作为应用」· TEST 代码 · 共 40 行

TEST
40
字号
#! /bin/sh# Yet another sources-in-conditional test.  Report from Tim Goodwin.. $srcdir/defs || exit 1cat > configure.in << 'END'AM_INIT_AUTOMAKE(nonesuch, nonesuch)AC_PROG_CCAM_CONDITIONAL(ONE, true)AM_CONDITIONAL(TWO, false)AC_OUTPUT(Makefile)ENDcat > Makefile.am << 'END'bin_PROGRAMS = targif ONEOPT_SRC = one.cendifif TWOOPT_SRC = $(OPT_SRC) two.cendiftarg_SOURCES = main.c $(OPT_SRC)END# The bug is that automake hangs.  So we give it a few seconds and# then kill it.$AUTOMAKE &pid=$!sleep 5kill -0 $pid && {   kill $pid   exit 1}exit 0

⌨️ 快捷键说明

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