-
Notifications
You must be signed in to change notification settings - Fork 1
/
hooks
executable file
·29 lines (27 loc) · 894 Bytes
/
hooks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh -e
case $1 in
post-build)
: "${3:?DEST is unset}"
case $2 in
kiss) # ensure we keep docs
;;
*)
rm -rf "$3/etc/bash_completions.d"
rm -rf "$3/usr/share/bash-completion"
rm -rf "$3/usr/share/applications"
rm -rf "$3/usr/lib/charset.alias"
rm -rf "$3/usr/share/polkit-1"
rm -rf "$3/usr/share/gettext"
rm -rf "$3/usr/share/gtk-doc"
rm -rf "$3/usr/share/locale"
rm -rf "$3/usr/share/sounds"
rm -rf "$3/usr/share/icons"
rm -rf "$3/usr/share/info"
rm -rf "$3/usr/share/fish"
rm -rf "$3/usr/share/doc"
rm -rf "$3/usr/share/man"
rm -rf "$3/usr/share/zsh"
;;
esac
;;
esac