mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-08 19:34:47 +03:00
Add missing file
This commit is contained in:
parent
f3dd797c8e
commit
de25393f02
22
lib/edit.indent.rc
Normal file
22
lib/edit.indent.rc
Normal file
@ -0,0 +1,22 @@
|
||||
#!/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
|
Loading…
x
Reference in New Issue
Block a user