This is an automated email from the ASF dual-hosted git repository.

pottlinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/creadur-tentacles.git

commit ae4a29deecd2efb84190fb728967e227aa9e1853
Author: P. Ottlinger <[email protected]>
AuthorDate: Sat Nov 16 22:27:17 2024 +0100

    TENTACLES-20: Add format helper
---
 .buildtools/formatSiteXml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/.buildtools/formatSiteXml b/.buildtools/formatSiteXml
new file mode 100755
index 0000000..57b2487
--- /dev/null
+++ b/.buildtools/formatSiteXml
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+for siteDesc in `find . -name \site.xml` 
+do
+       xmllint --format $siteDesc > /tmp/w 
+       mv /tmp/w $siteDesc 
+done

Reply via email to