Skip to content

Commit

Permalink
Update fileDelete.xml
Browse files Browse the repository at this point in the history
The following script was used to generate the file:

    #!/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>
    		<!-- Special files -->
    		<file>acp/masterPassword.inc.php</file>
    		<!-- /Special files -->
    EOF

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

    cat <<'EOF'
    	</delete>
    </data>
    EOF

And then the fileDelete.xml was re-sorted with vim's `:sort` to keep the diff minimal.
  • Loading branch information
TimWolla committed Dec 7, 2021
1 parent fba6de7 commit 04f17cd
Showing 1 changed file with 457 additions and 10 deletions.
Loading

0 comments on commit 04f17cd

Please sign in to comment.