aboutsummaryrefslogtreecommitdiff
path: root/examples/hooks/clean-packages
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-11-03 11:11:03 +0000
committermerakor <cem@ckyln.com>2021-11-03 11:11:03 +0000
commit14c6c527e8bb97e780cef4f47fdf2f29d741ad0e (patch)
tree29014ecd3bbae5b6b1a41da4d7dc200996400d4c /examples/hooks/clean-packages
parent82091c4496d74c1ba8e7533ce3ef5871f8b71e32 (diff)
downloadcpt-14c6c527e8bb97e780cef4f47fdf2f29d741ad0e.tar.gz
add some hook examples
FossilOrigin-Name: 5b6f01a9c9d80dcee6444d8ad23839eb1fa9546c30dfb4f83350c2bbab44fab7
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