[Trigger]
Type = Path
Operation = Remove
Target = @MINGW_HOOK_TARGET_PREFIX@/share/info/*

[Action]
Description = Removing old entries from the info directory file...
When = PreTransaction
Exec = /usr/bin/sh -c 'while read -r f; do @MINGW_PREFIX@/bin/install-info.exe --delete "$f" @MINGW_PREFIX@/share/info/dir 2> /dev/null; done'
NeedsTargets
