summaryrefslogtreecommitdiffstats
path: root/git_hooks
diff options
context:
space:
mode:
authorClément DAVID <clement.david@scilab-enterprises.com>2012-07-30 13:48:52 +0200
committercodereview <codereview@git.scilab.org>2012-07-30 14:06:03 +0200
commit3d38f821a8d5169a6f6f344b1cdb974115fbd3e6 (patch)
treee7566755f57e0b70f64921d773dc6b2aaf52c1c3 /git_hooks
parent84f082ff60f4b9c6bfd0e139f188c14fed596416 (diff)
downloadscilab-3d38f821a8d5169a6f6f344b1cdb974115fbd3e6.zip
scilab-3d38f821a8d5169a6f6f344b1cdb974115fbd3e6.tar.gz
Indentation hook: indent xsl files
Change-Id: I2409d9db9d664df8aee6e38c34e9c7e05145b161
Diffstat (limited to 'git_hooks')
-rwxr-xr-xgit_hooks/pre-commit6
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