index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2015-02-01 22:09:39 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-02-12 14:00:57 +1000 |
commit | 00da25a5ea3413e128c455fd711cf46692df6159 (patch) | |
tree | ecde71a27ed78798dceb0d889d4f96b9eab73277 /scripts/libmakepkg/tidy.sh.in | |
parent | bfe9b56e1fe3a0c17fa535acf8d29bbe318c0b8a (diff) |
-rw-r--r-- | scripts/libmakepkg/tidy.sh.in | 27 |
diff --git a/scripts/libmakepkg/tidy.sh.in b/scripts/libmakepkg/tidy.sh.in index b8c2965c..1f439ba2 100644 --- a/scripts/libmakepkg/tidy.sh.in +++ b/scripts/libmakepkg/tidy.sh.in @@ -26,14 +26,14 @@ LIBRARY=${LIBRARY:-'@libmakepkgdir@'} source "$LIBRARY/util/message.sh" + +declare -a packaging_options tidy_remove tidy_modify + for lib in "$LIBRARY/tidy/"*.sh; do source "$lib" done - -packaging_options=('strip' 'docs' 'libtool' 'staticlibs' 'emptydirs' 'zipman' - 'purge' 'upx' 'optipng' 'debug') -readonly -a packaging_options +readonly -a packaging_options tidy_remove tidy_modify tidy_install() { @@ -41,15 +41,12 @@ tidy_install() { msg "$(gettext "Tidying install...")" # options that remove unwanted files - tidy_docs - tidy_purge - tidy_libtool - tidy_staticlibs - tidy_emptydirs - - # options that reduce file sizes - tidy_zipman - tidy_strip - tidy_upx - tidy_optipng + for func in ${tidy_remove[@]}; do + $func + done + + # options that modify files + for func in ${tidy_modify[@]}; do + $func + done } |