Skip to content

Commit

Permalink
Fix protocol update script
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww committed Feb 2, 2023
1 parent 1378943 commit 255ccc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/update-protocols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ done

echo "Deleting unneeded files…"
# Delete everything but XML and licenses
find "${PROTOCOL_DIR}" -type f -and -not -iname '*.xml' -and -not -iname 'COPYING*' -and -not -iname 'LICENSE*' | xargs rm
find "${PROTOCOL_DIR}" -type f -and -not -iname '*.xml' -and -not -iname 'COPYING*' -and -not -iname 'LICENSE*' | xargs rm -f
# Special case this directory we don't need
rm -Rf "${PROTOCOL_DIR}/core/tests"
# Delete XML files that aren't Wayland protocols
find "${PROTOCOL_DIR}" -iname '*.xml' | xargs grep -L '^<protocol name=.*>$' | xargs rm
find "${PROTOCOL_DIR}" -iname '*.xml' | xargs grep -L '^<protocol name=.*>$' | xargs rm -f
# Remove any directories that are now empty
find "${PROTOCOL_DIR}" -type d -empty | xargs rmdir

Expand Down

0 comments on commit 255ccc8

Please sign in to comment.