Update fileDelete.xml
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 8 Dec 2021 09:31:48 +0000 (10:31 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 8 Dec 2021 09:31:48 +0000 (10:31 +0100)
commite72d0397804349e0074f7d6abe2aed17b3a85f40
tree43de7d97f9d543fcd4be7baccc73525fd4747319
parentc958e4f2b508fb665ec559d0e279e14e9301d751
Update fileDelete.xml

Generated with:

    #!/bin/bash

    cat <<'EOF'
    <?xml version="1.0" encoding="UTF-8"?>
    <data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/2019/fileDelete.xsd">
     <delete>
    EOF

    comm -23 <(git log 2bf40f755228eeae2902562471acf14177777eb6..HEAD --diff-filter=D --no-renames --summary |awk '/delete mode/{print $NF}' |grep files/ |sort -u) <(find files/ |sort -u) \
     |sed 's~^files/~~' \
     |sed 's~^~\t\t<file>~;s~$~</file>~'

    cat <<'EOF'
     </delete>
    </data>
    EOF
fileDelete.xml