diff options
author | Clément DAVID <clement.david@scilab-enterprises.com> | 2012-07-30 13:48:52 +0200 |
---|---|---|
committer | codereview <codereview@git.scilab.org> | 2012-07-30 14:06:03 +0200 |
commit | 3d38f821a8d5169a6f6f344b1cdb974115fbd3e6 (patch) | |
tree | e7566755f57e0b70f64921d773dc6b2aaf52c1c3 /git_hooks/pre-commit | |
parent | 84f082ff60f4b9c6bfd0e139f188c14fed596416 (diff) | |
download | scilab-3d38f821a8d5169a6f6f344b1cdb974115fbd3e6.zip scilab-3d38f821a8d5169a6f6f344b1cdb974115fbd3e6.tar.gz |
Indentation hook: indent xsl files
Change-Id: I2409d9db9d664df8aee6e38c34e9c7e05145b161
Diffstat (limited to 'git_hooks/pre-commit')
-rwxr-xr-x | git_hooks/pre-commit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit index 49cb9b7..7efe4f3 100755 --- a/git_hooks/pre-commit +++ b/git_hooks/pre-commit | |||
@@ -101,8 +101,8 @@ indent() { | |||
101 | do | 101 | do |
102 | local ext=$(expr "$file" : ".*\(\..*\)") | 102 | local ext=$(expr "$file" : ".*\(\..*\)") |
103 | case $ext in | 103 | case $ext in |
104 | .xcos|.xml) | 104 | .xcos|.xml|.xsl) |
105 | __indent_Xml; | 105 | __indent_xml; |
106 | ;; | 106 | ;; |
107 | .h|.c|.hxx|.cpp) | 107 | .h|.c|.hxx|.cpp) |
108 | __indent_C; | 108 | __indent_C; |
@@ -117,7 +117,7 @@ indent() { | |||
117 | } | 117 | } |
118 | 118 | ||
119 | # Indent the file with xmlindent if this is an xcos file | 119 | # Indent the file with xmlindent if this is an xcos file |
120 | __indent_Xml() { | 120 | __indent_xml() { |
121 | 121 | ||
122 | if test ! -x "$XMLINDENT" | 122 | if test ! -x "$XMLINDENT" |
123 | then | 123 | then |