mkvers.sh

来自「spice中支持多层次元件模型仿真的可单独运行的插件源码」· Shell 代码 · 共 37 行

SH
37
字号
#!/bin/sh -if test $# -le 4; then	echo '/* This file is generated automatically: do not edit directly */'fiecho '/*'echo ' * Analyses'echo ' */'echo '#ifndef TABLES_ONLY'for xx in $2; do	echo "#define AN_${xx}"doneecho '#endif'echo ''echo '/*'echo ' * Devices'echo ' */'for xx in $1; do	echo "#define DEV_${xx}"done;echo ''if test $# -le 4; then	echo '#define DEVICES_USED' \"$1\"	echo '#define ANALYSES_USED' \"$2\"else	echo '/* DO NOT MODIFY ANYTHING BELOW THIS LINE */'fiecho ''echo "char	Spice_Version[ ] = \"$3\";"echo "char	Spice_Notice[ ] = \"$4\";"if test $# -le 4; then	echo "char	Spice_Build_Date[ ] = \"`date`\";";else	echo "char	Spice_Build_Date[ ] = \"\";";fiecho ''exit 0

⌨️ 快捷键说明

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