pgcppindent

来自「PostgreSQL7.4.6 for Linux」· 代码 · 共 28 行

TXT
28
字号
#!/bin/shtrap "rm -f /tmp/$$ /tmp/$$a" 0 1 2 3 15entab </dev/null >/dev/nullif [ "$?" -ne 0 ]then	echo "Go to the src/tools/entab directory and do a 'make' and 'make install'." >&2	echo "This will put the 'entab' command in your path." >&2	echo "Then run $0 again."	exit 1fiastyle --version </dev/null >/dev/null 2>&1if [ "$?" -eq 0 ]then	echo "You do not appear to have 'astyle' installed on your system." >&2	exit 1fifor FILEdo	astyle --style=ansi -b -p -S < "$FILE" >/tmp/$$ 2>/tmp/$$a	if [ "$?" -ne 0 -o -s /tmp/$$a ]	then	echo "$FILE"		cat /tmp/$$a	fi	cat /tmp/$$ |	entab -t4 -qc |	cat >/tmp/$$a && cat /tmp/$$a >"$FILE"done

⌨️ 快捷键说明

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