Skip to content
Snippets Groups Projects
Commit 5d75245f authored by Dmitry Yu. Naumov's avatar Dmitry Yu. Naumov
Browse files

[T] Format files with xmlstarlet.

Also fixes the executable bit; now 644.
Replace tabs followed by xmlstarlet format:

```sh
#!/usr/bin/sh

tmpfile=$(mktemp /tmp/xmlformat.XXXXXX)

sed 's/\t/    /g' ${1} > ${tmpfile} && mv ${tmpfile} ${1}
xmlstarlet fo -s 4 ${1} > ${tmpfile} && mv ${tmpfile} ${1}

rm -rf ${tmpfile} # if something goes wrong
```
parent 5e7dfeb1
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 20 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment