summaryrefslogtreecommitdiffstats
path: root/abs/core/texinfo/texinfo-remove.hook
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/texinfo/texinfo-remove.hook')
-rw-r--r--abs/core/texinfo/texinfo-remove.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/abs/core/texinfo/texinfo-remove.hook b/abs/core/texinfo/texinfo-remove.hook
new file mode 100644
index 0000000..e57e666
--- /dev/null
+++ b/abs/core/texinfo/texinfo-remove.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Operation = Remove
+Target = usr/share/info/*
+
+[Action]
+Description = Removing old entries from the info directory file...
+When = PreTransaction
+Exec = /bin/sh -c 'while read -r f; do install-info --delete "$f" /usr/share/info/dir 2> /dev/null; done'
+NeedsTargets