• Dmitry Yu. Naumov's avatar
    [T] Format files with xmlstarlet. · 5d75245f
    Dmitry Yu. Naumov authored
    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
    ```
    5d75245f
circle_1e5_axi.prj 4.03 KB