config.csh
来自「c语言开发方面的经典问题,包括源代码.c语言开发所要注意的问题,以及在嵌入式等各」· CSH 代码 · 共 27 行
CSH
27 行
#! /bin/csh -f#! File: config.csh#! Usage: csh config.csh flag command . . .#! Last modified on Sat Oct 1 12:54:21 1994 by eroberts#! -----------------------------------------------------#! This shell script is used inside Makefiles to parameterize#! compilations for different Unix systems. The effect of the#! script is to execute the command and its arguments silently,#! throwing away any output to stdout or stderr. If the command#! succeeds, the config.csh program echoes the flag parameter; if not,#! it generates no output. The typical use of the program is#! within backquotes, as follows:#! #! gcc `csh config.csh -DCFLAG gcc -E -DCFLAG testfile.c` -c file.c#! #! If the internal command#! #! gcc -E -DCFLAG testfile.c#! #! succeeds, the outer compilation will define the CFLAG macro;#! if not, the macro will be undefined. Thus, if the option#! flag works correctly in the test case, it is used in the#! other compilations as well.#!eval $argv[2-] >& /dev/nullif ($status == 0) echo $1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?