src2texi
来自「Linux启动程序grub的源码分析与实现;」· 代码 · 共 17 行
TXT
17 行
#! /bin/sh## Convert a source file to a TeXinfo file. Stolen from glibc.## Usage: src2texi SRCDIR SRC TEXIdir=$1src=`basename $2`texi=`basename $3`sed -e 's,[{}],@&,g' \ -e 's,/\*\(@.*\)\*/,\1,g' \ -e 's,/\* *,/* @r{,g' -e 's, *\*/,} */,' \ -e 's/\(@[a-z][a-z]*\)@{\([^}]*\)@}/\1{\2}/g' \ ${dir}/${src} | expand > ${texi}.newmv -f ${texi}.new ${dir}/${texi}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?