aboutsummaryrefslogtreecommitdiff
path: root/examples/hooks/clean-packages
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks/clean-packages')
-rw-r--r--examples/hooks/clean-packages7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/hooks/clean-packages b/examples/hooks/clean-packages
new file mode 100644
index 0000000..972eb31
--- /dev/null
+++ b/examples/hooks/clean-packages
@@ -0,0 +1,7 @@
+# -*- mode: sh; -*-
+# clean-packages -- Remove documentation, and locales from packages.
+case $TYPE in
+ post-build)
+ rm -rf "$DEST/usr/share/locale" \
+ "$DEST/usr/share/doc"
+esac