mc/lib/edit.indent.rc

23 lines
590 B
Plaintext
Raw Normal View History

2000-05-24 03:25:37 +04:00
#!/bin/sh
# *** External Formatter (Indenter) for key F19 cooledit.
# args:
# $1 - edit file name
# $2 - highlight block file name
# $3 - error file name
case "$(echo $1 |sed s/^.*\\.//)" in #got extesion
c|C)
#ftp://ftp.gnu.org/pub/gnu/indent-2.2.5.tar.gz
indent -kr -pcs $2 1>/dev/null 2>$3
;;
cc|CC)
#http://gene.md.huji.ac.il/~tald/astyle/stable/src/astyle_1.11.5_src.tar.gz
astyle $2 1>/dev/null 2>$3
;;
*)
mv -f $2 $2.tmp
#ftp://alpha.gnu.org/gnu/fetish/textutils-2.0.tar.gz
fmt $2.tmp 1>$2 2>$3
rm -f $2.tmp
esac