mq4を清書する

indentコマンドを使って清書するshell scriptを作ってみました。

#!/bin/sh
nkf -Lu $1 | \
	indent	--ignore-profile \
		--standard-output \
		--no-tabs \
		--indent-level 3 \
		--line-length 200 \
		--dont-break-procedure-type \
		--braces-on-if-line \
		--braces-after-struct-decl-line \
		--dont-cuddle-else \
		--no-space-after-function-call-names | \
	nkf -Lw

楽チンでいい感じですw

FXメタトレーダー入門―最先端システムトレードソフト使いこなし術 (現代の錬金術師シリーズ 56)

FXメタトレーダー入門―最先端システムトレードソフト使いこなし術 (現代の錬金術師シリーズ 56)