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

pottlinger pushed a commit to branch feature/RAT-397
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git

commit c5886a8a3f1d9fb5c5877ad3965d0d450cb2794a
Author: P. Ottlinger <[email protected]>
AuthorDate: Fri Nov 15 22:00:57 2024 +0100

    RAT-397: Add build helper to format site descriptors properly
---
 .buildtools/formatSiteXml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/.buildtools/formatSiteXml b/.buildtools/formatSiteXml
new file mode 100755
index 00000000..57b24877
--- /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